Reginaldojs

exercicio 3,lista 2

May 15th, 2012
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. #include<stdio.h>
  2. int main(){
  3.         int idade;
  4.         printf("digite a idade:");
  5.         scanf|("%d",&idade);
  6.         if(idade<16)
  7.           printf("nao pode votar");
  8.         if(idade==16 || idade==17 || idade>70)
  9.           printf("voto facultativo");
  10.         if(idade==18 && idade<=70)
  11.           printf("voto obrigatorio");
  12.         return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment