Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int age;
- printf("Entre com a sua idade : \n"); scanf("%d",&age);
- if ((age>=0)&&(age<=11))
- {
- printf("Crianca!\n");
- }
- else if ((age>=12)&&(age<17))
- {
- printf("Adolescente!\n");
- }
- else if ((age>=18)&&(age<=35))
- {
- printf("Jovem!\n");
- }
- else if ((age>=26)&&(age<=64))
- {
- printf("Adulto!\n");
- }
- else printf("Idoso!\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment