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