64.2k views
0 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
.

1 Answer

3 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 Steve Waldman
by
3.3k points