Guest User

Untitled

a guest
May 26th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {int num1,num2,num3,maggiore;
  6. printf("Inserire tre numeri: ");
  7. scanf("%d %d %d", &num1, &num2, &num3);
  8.  
  9. maggiore=num1;
  10. if(num2>maggiore)
  11. {maggiore=num2;
  12. }
  13.  
  14. {if(num3>maggiore)
  15.  
  16. maggiore=num3;}
  17. printf("Maggiore: %d",maggiore);
  18. return 0;
  19. }
Add Comment
Please, Sign In to add comment