Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main() {
- int opcao, vt1=0, vt2=0, vt3=0, vt4=0, vt5=0;
- int a=1;
- // printf("ELEICOES 2014 \n \n");
- printf("Escolha seu candidato: \n 1-JOSE \n 2-MARIA \n 3-JOAO \n 4-BRANCO \n 5-NULO \n");
- scanf("%d", &opcao);
- while(a) {
- switch(opcao) {
- case 1:
- vt1 +=1;
- break;
- case 2:
- vt2+=1;
- break;
- case 3:
- vt3+=1;
- break;
- case 4:
- vt4+=1;
- break;
- case 5:
- vt5+=1;
- break;
- }
- }
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement