Greatest Of Two Numbers In C


#include<stdio.h> int main(){ int m,n; printf("\n Enter two number :"); scanf("%d%d",&m,&n); if (m > n) { printf("\n The greatest number is %d",m); } else { printf("\n The greatest number is %d",n); } return 0; }

Output:-

Enter two number : 121 33 The greatest number is 121