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