exzoticgaming21 exzoticgaming21
  • 18-09-2021
  • Computers and Technology
contestada

Write a program calculates your age in 2030 when you enter your birth year from the keyboard.

(Python)

Respuesta :

purity2m
purity2m purity2m
  • 18-09-2021

Answer:

print('THIS PROGRAM FORECAST YOUR AGE IN 2030 ' )

year = int(input('Please enter your year of birth: '))

age = 2030 - year

print ('YOUR AGE IN 2030 WILL BE - ', age)

Explanation:

The year entered will be stored in the variable "year", the value in "year" will be subtracted from 2030 and the result will be stored in the variable "age".

This value is displayed with a prompt as the persons age in 2030.

Answer Link

Otras preguntas

write question using the words.then, answers that are true for you. you/ last year/ were/ a student
what river located in southwest china was the boundary of the shang dynasty
What is the value of 6P6?   A. 1
a butterfly has a wingspan of 66mm and a height of 6cm which i greater its wingspan or its height
Why were roads significant to the roman republic and ancient cultures and religions of the same time period
how do you do stochiology
What is the value of 6P6?   A. 1
Mike can cut a 40 foot by 20 foot yard with a push mower in 25 minutes. At this rate, how many more minutes would it take him to cut a 40 foot by 30 foot yard?
how to graph the equation y=1/4x-6
Marisol bought three pairs of shoes that cost $38 each if the tax rate was 8% how much did marisol pay ?