Conditional Control Statements || IF Statement

Conditional Control Statements || IF Statement

Conditional Control Statements || IF Statement

Conditional Control Statements :-

The way of moving the control by depending on some condition is known as conditional control statements.

IF Statement :-

The general form of a simple-if statement is

Syntax:-

if(condition)
{
True Statements;
}

( or )

if(condition)
Statement;

  • In this statement we can check only one condition. It executes only true statement.
  • First it checks the condition. 
  • If the condition is true it executes true statement and then goes to next statement. 
  • If the condition is false it is directly goes to next statement.

Flow Chart :-

Programs :-

* Write a program input your Age & Print Eligible for Vote.

Output :-

Extra Program Output :-

Enter A Number : 10
Enter B Number : 5
A is Big Number

Enter A Number : 10
Enter B Number : 20

durgaprasad

leave a comment

Create Account



Log In Your Account