Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

max min

ARNABCHAKRABORTTY Dec 14th, 2017 51 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top