Say Mr. David wanted to divide the property of him in his three sons in the radio of 4:3:2
respectively you need to write a program to print share of each son such that the total property has to be provided input.
Share
Say Mr. David wanted to divide the property of him in his three sons in the radio of 4:3:2
respectively you need to write a program to print share of each son such that the total property has to be provided input.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer: Your required pyhton code is :-
prop = int(input("Enter total property (in ₹) : "))
x = prop/9
s1 = 4*x
s2 = 3*x
s3 = 2*x
print("Share of first son is : ₹ "+str(s1))
print("Share of second son is : ₹ "+str(s2))
print("Share of third son is : ₹ "+str(s3))
Please mark it as Brainliest.