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

Question ?????????????
How does the number of Electoral College votes a presidential candidate has compare to the number of popular votes a presidential candidate has? Sometimes the
5. Billy goes to the store. He has $90. He wants to purchase a leather jacket for $45, a hat for $10, and the rest on jeans. Each pair of jeans costs $35. Wri
Florence wants to spend no more than $3 on onions. Will she be able to buy 2.5 pounds of onions? Explain. Onions cost $1.25 per pound. I know the answer, but I
Is a Daisy a prokaryote or a eukaryote
how would i use the word recessive in a sentence.
Find the midpoint of H(13,8) and X(-6,-6)
What was the struggle to receive for voting rights for women also called
soy mama de María. María es la hermana de Ana. No soy la mama de Ana. Ana es la_______ de maría
What is found in every organ