Advertisement
ARNABCHAKRABORTTY

max min

Dec 14th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int m,n,l,max;
  5. printf("Enter three numbers: ");
  6. scanf("%d %d %d",&m,&n,&l);
  7. if((m>n)&(m>l))
  8. {max=m;}
  9. else if((n>m)&(n>l))
  10. {max=n;}
  11. else if((l>m)&(l>n))
  12. {max=l;}
  13. printf("maximum among all three numbers=%d",max);
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement