No products in the cart.

19. Write a program that asks …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

19. 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.
  • 1 answers

Creative Chhavi 1 year, 4 months ago

name = input("Enter your name: ") # user input current_age = int(input("Enter your age: ")) # user input #calculating the 100th year, considering 2020 as the current year hundredth_year = 2020 + (100 - current_age) print(f'{name} will become 100 years old in the year {hundredth_year}.')
http://mycbseguide.com/examin8/

Related Questions

Write a program for swapping two numbers?
  • 0 answers
Write a program for swapping two numbers
  • 1 answers
What is alu
  • 1 answers
Define packages
  • 0 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App