Calculate the year of 100 years
Write a program that gets the user's age and calculates what year the user (solar and AD) is 100 years old.
Write a program that gets the user's age and calculates what year the user (solar and AD) is 100 years old.
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
import time current_year = int(time.ctime()[20:]) - 621 age = int(input("Enter your age: ")) print(f'The year when you will be 100: "{current_year+(100-age)}"')
x = int(input("enter age :")) x -= 100 x = abs(x) y = x + 2024 print("you will be 100 years old at",y)
year = int(input('enter your birthyear : ')) month = input('enter your birthmonth : ') day = input('enter your birthday : ') print(year + 100 , month , day)
x = int(input('age:')) y = 100 a = int(input('what is this years ?:')) print('one hundred years old in:',y-x+a)
a=int(input("age:")) b=int(input("yers sham:")) c=int(input("yers mila:")) d=100-a print(b+d,c+d)
def sal (a) :
u = a - 100
u *= -1
u += 2024
y = a - 100
y *= -1
y += 1404
return u , y
age = int (input ('age : '))
r = sal (age)
print (r)
age=int(input("enter your age:")) n=100-age result=n+2024 result_2=n+1403 print(f"you will be 100 years old at {result} AD and {result_2} of solar year.")
Submitting answers is currently unavailable.
Build a table with HTML to show the following information: Name, Score, Hassan Hassani 17.25 Afforded Mohammadi Mohammed Hassani 13 Accept Mohammad Rezaei 9 Receives 19 Mardi Milad Mohammadi 12 ...
Write a program that receives a number from the user and prints the multiplication table as the following in the output. Yek adad vared konid: 2 x 1 = 2 2 x 2 = 4 x 3 = 6 2 x 4 = 10 x 6 = 12 2 2 x 7 = 14 2 x 7 = 2
Write a program that receives a number and from that number to 0 countdown is required between each number of 1 second pauses
Write a program that gets the user's date of birth and determines how many years, months and a few days have passed since his birthday
Write a function that receives a word and changes each letter to its next letter in the alphabet. Then returned the result. Indeed: "A" turns into "B" "" B "becomes" C "" C "becomes" D "and ........
Write a program that obtained a person's / BMI body / BMI formula and, according to the information below, shows the status of the person BMI = w / h * h formula = weight divided by second power BMI ...
Create a list and display the following on the screen. Next to each item must be automatically placed.
You must be logged in to access this section.
Login/Sign up If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.