Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.  
  5. int main ()
  6.  
  7. {
  8. char nome1;
  9. int idade1;
  10. printf ("Digite seu nome");
  11. scanf ("%c", nome1);
  12. printf ("Digite sua idade");
  13. scanf ("%d", idade1);
  14.  
  15. if(5 <=idade1>7) {printf ("Infantil A")};
  16.  
  17. if(8 <=idade1>10) {printf ("Infantil B")};
  18.  
  19. if (11 <=idade1>13) {printf ("Juvenil a")};
  20.  
  21. if (14 <=idade1>17) {printf ("Juvenil B")};
  22.  
  23. if (18 <=idade1) {printf ("Senior")};
  24.  
  25.  
  26.  
  27. System ("Pause");
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement