Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int max (int x,int y)
- {
- int z;
- z=(x>y)?x:y;
- return (z);
- }
- main()
- {
- int a,b,c,m;
- printf(" Please Input three number\n");
- scanf("%d%d%d",&a,&b,&c);
- m=max(a,b);
- printf(" The maximum number = %d",max(c,max(c,m)));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement