1 if( a == 10 ) {
2 cout << "Value of a is 10" << endl;
3 } else if( a == 20 ) {
4 // if else if condition is true
5 cout << "Value of a is 20" << endl;
6 }
1//1
2if(condition) {
3 statement(s);
4}
5else {
6 statement(s);
7}
8//2
9(condition) ? (true_statement) : (false_statement)