Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int totalalunos,homens,mulheres,porcentoh,porcentom;
- printf("digite o total de homens:");
- scanf("%d",&homens);
- printf("digite o total de mulheres:");
- scanf("%d",&mulheres);
- totalalunos=homens+mulhers;
- porcentoh=(homens*100)/totalalunos;
- porcentom=(mulheres*100)/totalalunos;
- printf("a porcentagem de homens e %d",porcentoh);
- printf("a porcentagem de mulheres e %d",porcentom);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment