Advertisement
kiwser

Untitled

Feb 27th, 2020
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5.     int num1,num2;
  6.     scanf("%d %d",&num1,&num2);
  7.     if(num1!=num2)
  8.     {
  9.         if(num1>num2)
  10.         {
  11.             printf("num1 is bigger\n");
  12.         }
  13.             else if(num1<num2)
  14.             {
  15.               printf("num2 is bigger\n");
  16.             }
  17.     }
  18.     else
  19.     {
  20.         printf("Both are equal\n");
  21.     }
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement