home
Learn
screen_rotation
#include <stdio.h> #include <conio.h> void main(){ int m; int n; int r; 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); r = m > n; if(r){ 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: 100 Enter value of n: 50 100 is greater than 50 Thank You