Key Points :
Decision Making Statements :
Decision
making or Conditional statements are the statements in which the condition is checked
& decision is taken.
Ex.
Decisions like in between a & b which is greater.
Value of a is equal or not equal to b. etc.
Decision
Making Statements are as follows:
1] if
2] if
else
3] else if
4] Nested if
5] Nested if else
1] if Statement:
This is a conditional statement on which condition is checked & this statement willexicute
only if the given condition become true.
Syntax:
if(condition)
{
true statement;
}
#Note :
In
this dicision making statement, there is only one condition.
No comments:
Post a Comment