Syntax of Simple-if
—————————-
if(condition)
{
statement1;
statement2;
.
.
.
statement n;
}

Simple C Program to understand Simple if:

output:

Simple-If-output

Explanation:
In the above program, the control enters into the if block only if the condition is true. And the statement printf(“\n program ends \n\n”); is executed every time.