In decision control structure the condition compared using relational operator like < <= > >= == != etc and prints required output.
if statement :
if (this condition is true)
execute this statement;
In the above syntax if is the key word followed by (relation condition check)
set of statements;
if statement :
if (this condition is true)
execute this statement;
In the above syntax if is the key word followed by (relation condition check)
set of statements;
program:
main()
{
int num;
printf("Enter a number less than 10");
scanf("%d", & num);
if(num<10)
printf("What an obedient servant you are!");
}