In a town, the percentage of men is 52 and the rest are women(
The first line of input is an integer
The output should be an integer representing the total number of women in the town.
Given total population
80000. Then the number of women should be 80000 x 48 / 100 = 38400 So the output is 38400.
100000 .So the output is 48000
n = int(input("Enter the total population of a town\t"))
total_women = int(0.52 * n )
print("The total number of women is: ",format(total_women))
Comments
Leave a comment