Ad Code

What is Conditional Statements(if,else) in c language

                   Conditional Statements In C Language

Definition: Conditional statements are use when we given any conditon in program. In C language program when we given any condition then we use If keyword.  जब हमें condition के साथ प्रोग्राम को रन करना होता है तब हम कंडीशनल स्टेटमेंट का प्रयोग करते हैं 



Syntax-:)  

if(condition){

Statement1;

Statemet2;

------ Statement n;

}

Example-:)  

if(x>5)
  {
     printf("x is greater than 5");
  }

Types Of Conditional Statements-:)

  1. if Statements
  2. if - Else statements
  3. Nested if -Else  Statements
  4. if Else if Ladder 
 Previous page                     Next page >

Post a Comment

0 Comments

Coding with Annu