home
Learn
screen_rotation
#include <stdio.h> #include <conio.h> void main(){ int m; int n; clrscr(); printf("\n This is an if() else statement program."); printf("\n Enter value of m: "); scanf("%d",&m); printf("\n Enter value of n: "); scanf("%d",&n); if(m > n){ printf("\n %d is greater than %d ",m,n); } else{ printf("\n %d is not greater than %d ",m,n); } getch(); }
Program Output
This is an if() else statement program. Enter value of m: 10 Enter value of n: 20 10 is not greater than 20