Computer Science, asked by bipandeepkaur003, 6 months ago

write aprogram that asks the user ro enter their name and age .Print a message addtrsded to their user that tells tge user the year in which they will turn 100 years old

Answers

Answered by spnsschool2020
1

Answer:

username=input("Please enter your name")

userage=input("Please enter your age")

def age100(userage):

turn=100-userage+2017

return turn

age100(userage)

message= 'Hello %s, your age is %d and you will turn 100 in the year %d' %(username,userage, turn)

print(message)

Explanation:

plz thank me

Similar questions