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

Mia is standing 210 yd from a radio tower. The angle of elevation from where she is standing on the ground to the top of the tower is 11°. How tall is the rad
Which political subculture is most supportive of widespread public participation in politics?
If a prep cook prepares ready-to-eat foods that will be held before service, they may be kept for more than 24 hours if _____.
Watermelon cost $0.39 per pound. Joesphs watermelon costs between $4.00 and $5.00. Which compound inequality correctly represents the possible weights of this w
Parental monitoring is most likely to be effective and healthy when it is
A ship traveled at an average rate of 22 miles per hour going east. It then traveled at an average rate of 17 miles per hour heading north. If the ship travel
How do you find slope?
tan 2θ; cos θ = 8 17 , θ in Quadrant I
Which expression will equal a rational product even though it is multiplying an irrational number times another irrational number?
Turn outs are features of roadways that are to be employed by