Ask Question
23 May, 20:39

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)

+4
Answers (1)
  1. 24 May, 00:34
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers