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 function that receives 2 numbers as parameter (A and B) and get A to power B and return
Write a function that receives a string and return the encrypted value according to the algorithm below. Then write a function that receives the encryption phrase and returns the initial string. In this encryption: Everything must be with ...
Write a class called Vehicle that has Model and Color features and has a method called get_info that returns all its features as a strang then write a class called Car from Vehicle ...
Write a program that receives the square area from the user and prints the size of each side in the output
Parking Management Program Write: When arriving, arrival time and car license plate number stored when exit, exit time save for the desired car at any moment (in the parking lot, exit) and other information ...
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.