Feed Headline Animator

What is the difference between simple if and compound if statement

Simple if statement: -

It is a conditional statement. Ifs syntax will be as:
If (condition)
Statement;
So first of all condition is checked if it will become true then statement will be executed otherwise not.
For example
If (a>b)
Great = a;

Compound if statement: -

Its syntax will be as:
If (condition)
{
Statement 1;
Statement 2;
------------
}


Posted by: Wasim Javed

No comments:

Post a Comment