Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- float eleit, vB, vN, vV, porcB, porcN, porcV ;
- printf("Entre com o total de eleitores de seu municipio:");
- scanf("%f", &eleit);
- printf("Entre com o total de votos brancos calculados:");
- scanf("%f", &vB);
- printf("Entre com o total de votos nulos calculados:");
- scanf("%f", &vN);
- printf("Entre com o total de votos validos calculados:");
- scanf("%f", &vV);
- porcB = (vB*100)/eleit;
- porcN = (vN*100)/eleit;
- porcV = (vV*100)/eleit;
- printf("No seu municipio foi constado %f porcento de votos brancos %f porcento de votos nulos e %f porcento de votos validos", porcB, porcN, porcV);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment