Advertisement
Mim_Roy

C-khoon: INPUT A,B,C and print max number

Feb 27th, 2020
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.47 KB | None | 0 0
  1. /*
  2. 28-02-2020
  3. Class condition
  4. INPUT A,B,C and print max number
  5. */
  6.  
  7. #include<stdio.h>
  8.  
  9. int main()
  10. {
  11.     int a,b,c;
  12.     printf("Enter the value of a,b&c:\n");
  13.     scanf("%d %d %d",&a,&b,&c);
  14.  
  15.     if(a>b)
  16.         if(a>c)
  17.             printf("a is Big");
  18.         else
  19.             printf("c is big");
  20.     else if(b>a)
  21.         if(b>c)
  22.             printf("b is Big");
  23.         else
  24.         printf("c is big");
  25.     else
  26.         printf("c is Big");
  27.  
  28.     return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement