Answer to Question #218775 in Python for ravi

Question #218775

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 be 80000 x 48 / 100 = 38400 So the output is 38400.

100000 .So the output is 48000
1
Expert's answer
2021-07-21T16:40:51-0400
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))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS