Calculate User Birthday
Write a program that gets the user's age from the input and calculates and prints the user's birthday
Write a program that gets the user's age from the input and calculates and prints the user's birthday
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
age=int(input('age:')) a=1403 b=age-a print('sale tavalode shoma:',b)
from datetime import date age = int(input(f"What's your age?")) today = date.today() current_year=today.year birth_year=current_year-age print(birth_year)
age = int(input("Please Enter your age: "))
print("Miladey=",2025-age)
print("Shamsy=",1404-age)
print("Ghamary=",1446-age)
a=int(input("age: ")) b=int(input("emsal: ")) c=b-a print(c)
from datetime import datetime age = int(input("how old are you?")) current_year = datetime.now().year birth_year = current_year - age print(f"you were born at {birth_year}")
from datetime import datetime as gdt from jdatetime import datetime as jdt age = int(input('Enter your age: ')) print(f'Gregorian birthday: {gdt.today().year - age:2d} - Jalali birthday: {jdt.today().year - age:2d}')
from datetime import datetime # Get User Age from Input age = int(input("لطفاً سن خود را وارد کنید: ")) # Calculate the year of birth current_year = datetime.now().year birth_year = current_year - age # Birthday printing print("سال تولد شما برابر است با:", birth_year)
Submitting answers is currently unavailable.
Write a program that has a graphical environment and can perform the sum, subtraction, multiplication and division operations on the infinite number. (Exactly like a real calculator)
Write a program that receives the radius of the circle and prints its area and environmental area = radius * Pi (3.14) circle environment = diameter (radius * 2) * Pi (3.14)
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.