Advertisement
Guest User

Lily

a guest
Sep 21st, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include<stdio.h>
  2. int max (int x,int y)
  3. {
  4.     int z;
  5.     z=(x>y)?x:y;
  6.     return (z);
  7. }
  8. main()
  9. {
  10.     int a,b,c,m;
  11.     printf(" Please Input three number\n");
  12.     scanf("%d%d%d",&a,&b,&c);
  13.     m=max(a,b);
  14.     printf(" The maximum number = %d",max(c,max(c,m)));
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement