The age of the father and the son
Write a program that receives the age of father and son from the input and prints them (subtraction) in the output
Write a program that receives the age of father and son from the input and prints them (subtraction) in the output
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
# Get user input for father's age and son's age a = int(input("Enter the father's age: ")) # Corrected the typo in the prompt b = int(input("Enter the son's age: ")) # Prompt for son's age # Calculate the age difference d = a - b # Print the result print("Here is your result: ", d)
X=int(input("father's age: ")) Y=int(input("boy's age: ")) print(X-Y)
dadage = int(input("a: ")) sonage = int(input("b: ")) print(dadage-sonage)
tool = int(input("tool")) arz = int(input("arz")) print(tool * arz)
fatherAge=int(input("please set father age: ")) sonAge=int(input("please set son age: ")) print("minus =",fatherAge-sonAge)
a =int(input("sen pedar:")) b = int(input("sen pesar:")) tafazol = (a - b) print("tafazol,sen=" ,tafazol)
print("salam azizam") print("tafazol sen pedar va farzand bezan berim ") p = input("sen baba : ") f = input("sen farzand: ") p = int(p) f = int(f) print ( "ekhtelaf senton: " , p-f)
Submitting answers is currently unavailable.
Write a program that receives a numeric as A from the input and prints all the first numbers smaller than A.
Write a program that receives an email address and separates the various sections as follows and prints on the output example: email: [email protected] info amirhn.ir Example: email: [email protected] username gmail.com
Write a program that receives a solar date from the input (in the format of yyyy/mm/dd). Then convert the date to AD and print in the output
Create a link with the following details by clicking the user link to be directly calling 090000000.
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.