Women population
in a town, the percentage of men is 52 and the rest are women ( W ).the total population ( T ) of town is given as input.
write a program to print the total number of women in the town.
Input
the first line of input is an integer T .
output
the output should be an integer representing the total number of women in the town.
explanation
given total population 80000 . then the number of women should 80000*48/100=38400
so the output should be 38400 .
sample input 1
80000
sample output 1
38400
sample input 2
100000
sample output 1
48000
def wom_pop(T):
return 0.48 * T
wom_pop(150000)
72000.0
Comments
Leave a comment