Advertisement
zfhridoy47

problem_2

May 24th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4.  
  5. {
  6.     int a,b,c;
  7.  
  8.       printf("Enter three numbers: ");
  9.  
  10.     scanf("%d %d %d", &a,&b,&c);
  11.  
  12.     if(a>b && a>c)
  13.         printf("A is maximum\n");
  14.  
  15.     else if(b>a && b>c)
  16.         printf("B is maximum\n");
  17.  
  18.     else if(c>a && c>b)
  19.         printf("C is maximum\n");
  20.  
  21.     else if(a==b && b==c)
  22.             printf("All three numbers are same\n");
  23.     return 0;
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement