English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

Write a note on if..else structure. - Computer Science

Advertisements
Advertisements

Question

Write a note on if..else structure.

Short Note

Solution

The if-else statement provides control to check the true block as well as the false block. Following is the syntax of the if-else statement.

Syntax:

if:
statements – block 1
else:
statements – block 2

shaalaa.com
Control Structure
  Is there an error in this question or solution?
Chapter 6: Control Structures - Evaluation [Page 88]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 12 TN Board
Chapter 6 Control Structures
Evaluation | Q 2. | Page 88
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×