Ask Question
9 April, 02:22

If you enter 1 2 3 in three separate lines, when you run this program, what will be displayed? print ("Enter three numbers: ") number1 = eval (input ()) number2 = eval (input ()) number3 = eval (input ()) # Compute average average = (number1 + number2 + number3) / 3 # Display result print (average)

+2
Answers (1)
  1. 9 April, 05:10
    0
    If you enter (1 2 3)

    The program takes the first input and call it number1=1

    The program takes the second input and call it number2=2

    The program takes the third input and call it number3=3

    Then the program is meant to add number1 to number2 and to number3

    Number1+number2+number3=1+2+3=6

    After that the programs take the average of this number by dividing it by 3

    I. e

    Average = (Number1+number2+number3) / 3

    Average = 6/3

    Average = 2

    The program will display the result average as "2"
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “If you enter 1 2 3 in three separate lines, when you run this program, what will be displayed? print ("Enter three numbers: ") number1 = ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers