Skip to content

Instantly share code, notes, and snippets.

@felipecabargas
Last active December 15, 2015 06:29
Show Gist options
  • Save felipecabargas/5216991 to your computer and use it in GitHub Desktop.
Save felipecabargas/5216991 to your computer and use it in GitHub Desktop.
Ejercicio Programación FCFM (Pepa)
h = input("Cuantos hombres hay?: ")
m = input("Cuantas mujeres hay?: ")
p = 100 * h / (h + m)
print "El porcentaje de hombres es:",p
print "El porcentaje de mujeres es:", (100 - p)
@felipecabargas
Copy link
Author

This gist calculates the percentage for 2 groups

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment