Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int age;
- printf("Insira a idade do individuo :\n"); scanf("%d",&age);
- if (age<16)
- {
- printf("Individuo nao pode votar!\n");
- return 0;
- }
- else if (((age>=16)&&(age<=17))||(age>70))
- {
- printf("O voto eh facultativo!\n");
- return 0;
- }
- else
- {
- printf("O voto eh obrigatorio!\n");
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment