Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void) {
- int age;
- printf("age : ");
- scanf("%d", &age);
- switch(age) {
- case 6:
- case 7: printf("poussin"); break;
- case 8:
- case 9: printf("pupille"); break;
- case 10:
- case 11: printf("minime"); break;
- case 12:
- case 13:
- case 14:
- case 15: printf("cadet"); break;
- default: printf("categorie incorrecte");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement