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

if 2 sides of a triangle measure 6 and 16 find the range for the 3rd side
Write two to four sentences explaining how Stevenson generates suspense in the first two chapters of The Strange Case of Dr. Jekyll and Mr. Hyde. Include specif
If a sphere of ice cream that was 2.5 inches in diameter was placed on top of the ice cream cone that had a height of 4 inches and a diameter of 1.75 inches and
The most significant area of similarity among these four revolutions was in their _______________________ (causes, courses, or consequences). That area included
If you deposit $5000 into an account paying 6% annual interest compounded monthly, how long until there is $8000 in the account?
Ben deosites 4580 in an account that earns 6% apr compounded weekly. What is the ending balance after 2 years
What is the end of william shakespeer's play Macbeth?
Did i draw this or did I just copy and paste it€
Which accurately describes agricultural practices of the Aztecs?
how to solve [tex]f(-x) = 7(-x)^2- 1 / (-x)^2[/tex]