Kawsar_Hossain

problem_2

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