Answer:
Written using Python 3:
num1 = int(input("Enter first value: "))
num2 = int(input("Enter second value: "))
finalResult =(num1+num2) / 3
print("Answer is: ", finalResult)
INPUT:
Enter first value: 4
Enter second value: 5
OUTPUT:
Answer is: 3
Explanation:
First step is to declare the variables:
Second is to ask for an input:
Then we need to convert them into integers by encapsulating the line above inside int(). This is a requirement before you can do any mathematical operations with the given values.
Next is to calculate:
And to test if the output is correct, let us print it: