Advertisement
rony-Rony_05

problem 6

Jul 3rd, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include<stdio.h>
  2. int max(int a,int b,int c);
  3. int main()
  4. {
  5. int num1,num2,num3;
  6. scanf("%d%d%d",&num1,&num2,&num3);
  7. printf("big number=%d",max(num1,num2,num3));
  8. }
  9. int max(int a,int b,int c)
  10. {
  11. if(a>b && b>c)
  12.     return a;
  13. else if(b>c && b>a)
  14.     return b;
  15. else
  16.     return c;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement