1657838
1657838 1657838
  • 24-03-2022
  • Computers and Technology
contestada

What is the value of sum after the code segment is executed?

What is the value of sum after the code segment is executed class=

Respuesta :

Аноним Аноним
  • 25-03-2022

Let's go as per program

  • 6<4 ? False

It goes to else now

  • num3 is turned to num 2

  • num3=4

then

  • num2>=num3 ?False

It will go out as no else is available

Now the present values are

  • num1=6
  • num2=num3=4
  • Sum=6+4+4=10+4=14

Answer is 14

Answer Link

Otras preguntas

how Mendeleev’s periodic table differs from Moseley’s
Find the pair of words that has the same kind of relationship as the numbered pair. euthanasia : mercy :: A. Postmortem : analysis B. Matriculation : graduation
France's interest in North America in the 16th century was MAINLY because of a. the commercial possibilities in the area. b. France was facing severe urban ov
in a list of numbers the pattern increases by 0.001 as you move to the right in the 3rd number in the list is 0.064 what is the first number in the list.explain
the waste products of combustion leave the internal combustion engine through the? A. Exhaust valve B. Crankshaft C. Intake valve D.cylinder
Marylou buys a package of 500 jewels to decorate 4 different pairs of jeans. She uses the same number of jewels on each pair of jeans how many jewels will she u
In the late 1800s, the growth of the railroad led to Midwestern cities like Minneapolis and Cleveland becoming
how did John Brown's Raid frighten many Southerners?
we have a large stone fireplace in our a.home b.residence
what is 72.1 written as a fraction