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

Who serves as the chief tax collector for the state?
Element that has two isotopes has an average atomic mass of 199.7. if 75.56% of the atoms of the element have an atomic mass of 197.4, what is the atomic mass o
Suppose a system of equations has fewer equations than variables and you have found a solution to this system of equations. is it possible that your solution is
explain how the declaratory act was a cause of the boston tea party
What is the slope of the line that passes through the pair of points (2, -3) and (5, -4)?
is Hemoglobin built by carbohydrates, lipids, proteins or nucleic acids?
What Shape Is This ?
A 6-year-old child fell off his bike and scraped his knee. describe the first stage of wound healing.
a number is double and than increased by nine. the result is ninety-one. what is the original number?
In Tudor life how where the villagers affected by the king???