Advertisement
kiwser

Untitled

Feb 13th, 2020
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5.     int num1,num2;
  6.     printf("Enter 2 number: ");
  7.     scanf("%d %d",&num1,&num2);
  8.     if(num1>num2)
  9.     {
  10.         printf("%d is greater than %d\n",num1,num2);
  11.  
  12.     }
  13.     else
  14.     {
  15.       printf("%d is greater than %d\n",num2,num1);
  16.     }
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement