Computer Science, asked by Priyanshumaurya350, 7 months ago

Write a program that asks the user to enter their name and age. Print a
message addressed to the user that tells the user the year in which they will turn 100 years old.

Answers

Answered by Anonymous
71

Answer:

hi...its a python code..

Explanation:

name=str(input("enter your name:"))

a=int(input("enter your age:"))

print(name)

print(a)

year=int(input("enter the present year:"))

t=100-a

print(t)

if t>=100:

   print("you have already crossed the age of 100")

else:

   ans=year+t

   print("in the ",ans,"year you will turn 100")

hope it helps you

please mark brainliest

Similar questions