1. If Statement
  2. If Else Statement
  3. Else If Statement
  4. Switch Case Statement
  5. Break Statement
  6. Continue Statement
  7. Goto Statement


1. If Statement
if Statement में अगर Condition true होती है तब Statement Execute होता है |
if(condition){
statement(s);
}

2. If Else Statement
if_else Statement में अगर Condition true हो तो वो if का statement Execute करता है | अगर Condition false होती है तो else का Condition करता है |
if(condition){
statement(s);
}else{
statement(s);
}

3. Else If Statement
else_if Statement में अगर if की Condition true होती है तो if का statement execute होता है | अगर if का condition false होता है तो वो अगले condition पर जाकर check करता है | अगर वो condition true होता है तो वो उसका statement execute करता है | अगर कोई भी condition true नहीं होती तो वो else का statement execute करता है |
if(condition){
statement(s);
}else if(condition){
statement(s);
}else{
statement(s);
}

4. Switch Case Statement
Switch case statement में expression होता है और उससे related कुछ cases होते है | जो case उस expression या declare किये हुए variable से match होती है तब वो output में print होता है | अगर कोई भी case expression से match नहीं होती तो वो default का statement output में print करेगा | आपको हर statement के बाद break लगाना पड़ता है, इसका मतलब वो उसके पहले का statement ही print करेगा | अगर आप break नहीं लगाते तो वो पहला और दूसरा ये दोनों statement को print करेगा | default case के बाद break नहीं लगाते |
switch (expression){

case value1 :
statement1 ;
break;
case value2 :
statement2 ;
break;
default :
statement3 ;
}

5. Break Statement
Break Statement Program के loops और switch case के execution का काम किसी condition पर बंद कर देता है |
break;

6. Continue Statement
Continue Statement Program के loops के condition के हिसाब से बीचवाले statements को skip कर देता है और बादवाले statement को execute करता है |
continue;

7. Goto Statement
Go to ये C Programming का statement है | इसमें labels का use किया जाता है |

Goto Statement के दो प्रकार होते है |
Forward
Backward

जब goto statement कुछ statement को छोड़कर उसके अगले statement को execute करता है , उसे Forward goto statement कहते है और किसी पिछले या execute हुए statement को फिरसे execute करने के लिए अपने पिछले label पर जाता है , उसे Backward goto statement कहते है |