Last active
December 15, 2015 06:29
-
-
Save felipecabargas/5216991 to your computer and use it in GitHub Desktop.
Ejercicio Programación FCFM (Pepa)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This gist calculates the percentage for 2 groups