Computer Science, asked by shaivigzp, 7 months ago

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 amittyagi1569
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 aimenmansoor18
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