Program for taking name and age from user and show them in which year they will move to 100 years
Program for taking name and age from user and show them in which year they will move to 100 years
Source codeprint("Program for taking name and age from user and show them in which year they will move to 100 years")
from datetime import datetime
a = (input("Enter your Name = "))
print('Hello', a
)
b = int(input("Enter your age = "))
c = int((100-b) + datetime.now().year)
print("You will turn to 100 years in = ", c )
Comments
Post a Comment