Computer Science, asked by poojasp2620, 18 hours ago

write a python program that will find out your age in maximum of 10 tries

Answers

Answered by Anonymous
3

Programming language: Python

print("Think of any number between 0 to 10" ' ')

print("Multiply it by 2")

print("Add 5 to it")

print("Multiply again by 50")

print("If you have already had your birthday this year, add 1771, but if you haven't, add 1772.")

print("Final step", "Subtract it by your birth year.")

age = int(input("Enter your last two digit of answer"))

print("Your age is", age)

_______________________________

I know the códe isn't of a good level but it can find your age. Apologize if it is wrong.

Attachments:
Similar questions