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
pedar=int(input("sen pedar:"))
pesar=int(input("sen pesar:"))
a=pedar-pesar
print(a)
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)
Submitting answers is currently unavailable.
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 function that receives a number and specifies or not to be paired by returning TRUE or FALSE
Write a program that receives the square area from the user and prints the size of each side in the output
Write a program that receives a text from the user as an input and all the words used in the text, along with the number of repeating them to the user, such as: Input: This is an Example. This is a text ... ...
Write a function to get a string and return the length of the string Tip: In this exercise you should not use ready -made functions like Len in Python
Create a link with the following specifications. The phrase link (click here) should be on the code-bezan.ir page Title the phrase (programming exercise) be open but open on the new page
Write a code that uploads a video with an address (test) on the page. There are video control buttons too
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.