Advertisement
CristianMarinTorres

Encuesta

Mar 29th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. print("ingrese cantidad de hombres")
  2. hombre=int(input())
  3. print("ingrese cantiad de mujeres")
  4. mujer=int(input())
  5. suma=hombre+mujer
  6. porcentajeh=(hombre*100)/suma
  7. porcentajem=(mujer*100)/suma
  8. print("el % de hombres es",porcentajeh)
  9. print("el % de mujeres es",porcentajem)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement