1201emann 1201emann
  • 22-05-2021
  • Computers and Technology
contestada

What is the output when you run the following program? print(3 + 7) print("2 + 3") 10 2 + 3 3 + 7 5 3 + 7 2 + 3 10 5

Respuesta :

fichoh
fichoh fichoh
  • 27-05-2021

Answer:

10

2 + 3

Explanation:

The statement ;

print(3 + 7) will give the output 10 ; by cause we are using the print command to display the result of the integer sum of 3 and 7 which is 10

The other statement print("2 + 3") will give the output 2 + 3. This is because by wrapping the statement within quotation marks, the programming language sees it as a string rather Than an integer on which a mathematical operation can be performed. Hence it prints what is written within the quotation marks.

Answer Link

Otras preguntas

Which person lead the rebellion against Shi Huangdi’s harsh rule? Chen Seng King Zheng Empress Wu Chengho
the outcome of the 2000 presidential election was decided by a
When applied to motor vehicle operation, _______ is the force that keeps a motor vehicle's tires from slipping on the roadway surface. a. None of the answers b
What is the solution or solutions for 3[-3x+9]=-18
0.2% of what number is 12
Name a point that is (radical 2) away from (-1,5).
Does mitosis or meiosis occur more frequently in your body, and can you explain
How were the goals of Saladin and Richard both alike and different?
rewrite the expression with parentheses to equal the given value 2 x 6 / 2 + 1
Under what circumstances, to Locke, might it be necessary for the people to dissolve their government and start anew? Be detailed in your response.