if,else-if nested-if





If conditon statement

if condition statement

An if statement is a programming conditional statement that, if proved true, performs a function or displays information. Below is a general example of an if statement, not specific to any particular programming language....


Read More





If...else condition statement

The else statement specifies a block of code to be executed if the condition is false: if (condition) { // block of code to be executed if the condition is true. } else { // block of code to be executed if the condition is false....

Read More



else if ladder condition statement

  else if ladder condition statement

The if-else-if Ladder. A common programming construct that is based upon nested ifs is the if-else-if ladder. It looks like this. The conditional expressions are evaluated from the top downward. As soon as a true condition is found,


Read More



nested if condition statement

The block of code following the else statement is executed as the condition present in the if statement is false. nested-if. Nested if statements means an if statement inside another if statement....


Read More




Comments

Popular posts from this blog

operators in c program

nested-if

switch-statement