Write a program that asks the user to enter one's name
and age. Print out a message addressed to the user that
tells the user the year in which he/she will turn 100
years old.
Answers
Answered by
9
Answer:
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")
Answered by
1
Answer:
#include <iostream.h>
void main( )
{
char name;
cin>> name;
cout<< name;
cout << " in which year you will turn 100";
return 0;
getch ( );
}
Similar questions
Social Sciences,
3 months ago
Biology,
3 months ago
Math,
3 months ago
English,
7 months ago
Math,
7 months ago
Social Sciences,
1 year ago