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)
age1 = input('father age: ')
age2 = input('son age: ')
age1 = int(age1)
age2 = int(age2)
print(age1 - age2)
Submitting answers is currently unavailable.
Create a button below: when the mouse marker is on it:
Online Store with the following features to add new product by Admin in the Management Panel Panel User Name by User Selecting and Registering (Online Payment and Home Payment Option ...
Design a form that receives the following information using the best elements from the user and to the register page/ by posting the Post Family Subscribe of Mobile Birthday Country
Write a program that receives the user's username and password and checks whether the username and password entered are correct? Username - Passwordamirhossein - 12345hooshang - 009922 ...
Write a function that returns the number of a character in a string. To this question you should not use ready -to -use functions ("hooshang", "O") #2
Write a program that receives a number from the user and converts to letters suppose the numbers entered between 0 and 1000000 23 ➞ Twenty Three 405 ➞ Four HundredR
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.