Write a program no. 32 using if-else-if ladder.
Answers
Answered by
1
C/C++ if else if ladder with Examples
Decision Making in C/C++ helps to write decision driven statements and execute a particular set of code based on certain conditions.
In C/C++ if-else-if ladder helps user decide from among multiple options. The C/C++ if statements are executed from the top down. As soon as one of the conditions controlling the if is true, the statement associated with that if is executed, and the rest of the C else-if ladder is bypassed. If none of the conditions is true, then the final else statement will be executed.
Similar questions