Saturday, December 19, 2024

Nested if Else in C Programming

If Statement Nested Inside Else
if(expression1)
    statement1;
else
   if(expression2)
     statement2;
If Statement Nested Inside Another If and Else
if(expression1)
   if(expression2)
     statement1;
else
   if(expression2)
     statement2;
If Statement Nested Inside Another If
if(expression1)
   if(expression2)
     statement1;
else
     statement2;
If-Else Statement Nested Inside Another If
if (expression1)
 if (expression2)   //---If Block Starts
   statement1;
 else
   statement2;      //---Corresponding Else Ends
else
   statement3;

0 comments:

Post a Comment

Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email

Copyright Notice | Link Exchange | Privacy Policy |Contact Us

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cheap international calls