Mim527

1.Largest numbers

May 30th, 2019
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include<stdio.h>
  2. main(){
  3. int a,b,c;
  4. printf("Enter the numbers:");
  5. scanf("%d %d %d",&a,&b,&c);
  6. if  ((a>b)&&(a>c)){
  7.        printf("%d is largest",a);}
  8.  else if((b>a)&&(b>c)){
  9.  
  10.     printf("%d is largest",b);}
  11. else
  12.     printf("%d is largest",c);
  13.  
  14.  
  15.  
  16.  
  17.  
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment