IF THAN ELSE STATEMENT


IF THAN ELSE STATEMENT:

The general form of  this statement is as follows:

when the above if statement is executed the condition expression is evaluated. if the condition is true then the block of statement is follow else mean if the condition is not true then other block of statement follows

PROGRAM #1

OUTPUT:

In this program when the condition n>450 is true then the statement that is written inside the bracket after are displayed .If condition n>450 is not satisfied then the statement after else is displayed.

PROGRAM:

OUTPUT



Comments

Popular posts from this blog

Stack

Operation on Single Linked List

EXTRA INFORMATION ABOUT TECHNOLOGY