if else block

If test condition is true, statements inside the body of if block will be executed otherwise statements inside the body of else block are executed.
यदि टेस्ट कंडीशन सत्य होती है तब if ब्लॉक के स्टेटमेंट रन किये जायेंगे अन्यथा else ब्लॉक के स्टेटमेंट रन किये जायेंगे

Syntax:-
if(condition) statement;
else statement;

if(condition){
statements;
}
else{
statements;
}

Comments

Popular posts from this blog

C Language Topics in Hindi and English

Top High-Paying Tech Skills to Learn in 2025

C Programming for Finance: A Powerful Tool for Financial Modeling and Analysis