532,934 views
3 votes
3 votes
Assume the user responds with a 3 for the first number and a 5 for the second number.

answerA = input("Enter a number. ")
answerB = input("Enter a second number. ")
numberA = int(answerA)
numberB = int(answerB)
result = (numberA + numberB) / 2
print ("The result is" , result)
What is the output?
The result is
.

User Kausar
by
2.9k points

1 Answer

10 votes
10 votes

Answer:

4.0

Step-by-step explanation:

Assuming this is Python, which it looks like it is, all you're doing is taking two inputs, making them ints, adding them up, and then dividing.

User Vijesh Venugopal
by
2.8k points