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

What is the basic ratio for 120:150
what is 9/10 - 1/15 ?
Why was Captain Smith given command of the Titanic?
The BLANK of a plane figure is the number of non overlapping square units or a given size that exactly covers the figure
Name a few of the revolutionary roots of the constitution, specifically the groups that came together to protest the British government.
A example sentence of asyndeton?
Solve for g 7h+f=2h+g
Why was Captain Smith given command of the Titanic?
how do you graph f(x)= |x-2|+5
According to the theory of _________, a cut in taxes would make the economy grow faster by putting more money into the hands of businesses.