Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int a,b,c,max;
- printf("Enter three numbers: ");
- scanf("%d %d %d",&a,&b,&c);
- if((a>b)&(a>c))
- {max=a;}
- else if((b>a)&(b>c))
- {max=b;}
- else if((c>a)&(c>b))
- {max=c;}
- printf("maximum among all three numbers=%d",max);
- return 0;
- }
Add Comment
Please, Sign In to add comment