Advertisement
mujahidul_islam

Problem 2

May 26th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1.  
  2.  
  3. #include<stdio.h>
  4. int main()
  5. {
  6.     int a,b,c;
  7.     scanf("%d %d %d",&a,&b,&c);
  8.     if(a>b && a>c){
  9.         printf("a is maximum\n");
  10.     }
  11.     else if(b>a && b>c){
  12.         printf("b is maximum\n");
  13.     }
  14.     else{
  15.         printf("c is maximum\n");
  16.     }
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement