zfhridoy47

problem_1

May 24th, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int X, Y;
  6.  
  7.  
  8.     printf("Enter two numbers: ");
  9.     scanf("%d %d", &X, &Y);
  10.  
  11.  
  12.     if(X > Y)
  13.     {
  14.         printf("%d is maximum", X);
  15.     }
  16.  
  17.      else if(Y > X)
  18.     {
  19.         printf("%d is maximum", Y);
  20.     }
  21.  
  22.     if(X == Y)
  23.     {
  24.         printf("Both are equal");
  25.     }
  26.  
  27.     return 0;
  28. }
Add Comment
Please, Sign In to add comment