C Decision Making Controls

C programming language provides the following types of decision making controls.

if statement

If statement is a conditional branching statement.It used to test a condition, if condition is true then the code inside the if statement is executed otherwise that code is not executed.

The syntax of the if is as follows:

if(expression){ /* write statement here */ }
#include
#include
void main(){
  int m = 10;
  clrscr();
  if(m <= 10){
    printf("value of m is less than or equal to 10");
  }
 getch();
}

Output

value of m is less than or equal to n