Advertisement
Tanmoy12393

Untitled

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