Ask Question
6 August, 11:05

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. 6 August, 11:20
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers