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

what are straphangers?
percent of discount is 25% and the new price is 40$ whats the original price?
increase 260 kg by 10% and then decease the result by 10% Could i get a formula please Thanks!
Heat from a fire place is transferred out to the room it How does the heat from the fire place transfer out to the room?
What is the sum of the fractions?​
Please help!! Is this an: Acid Base Neither
1. How do you calculate the percent of increase or decrease?
Heres another brainly question giving 20pts!!
What were the two most important uses of wheat in Egypt? A) making cloth and to making paper B) adding flavor to food and to keeping food from spoiling C) makin
When hired at a new job selling electronics, you are given two pay options: • Option A: Base salary of $10,000 a year with a commission of 9% of your sales • Op