home
Learn
screen_rotation
#include <stdio.h> #include <conio.h> void main(){ int m; int n; clrscr(); printf("\n This is an if() 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); } printf("\n Thank you "); getch(); }
Program Output
This is an if() statement program. Enter value of m: 200 Enter value of n: 100 200 is greater than 100 Thank you