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 measure of ea
Which factors led to the mid-1800s' westward expansion in the United States? Expansionist Program gold discovery Homestead Act railroad modernization populatio
sinx=cos19∘ What is the value of x? Enter your answer in the box.
Let f(x)=2x and g(x)=2x+4+8 . Which transformations are needed to transform the graph of f(x) to the graph of g(x) ? Use the drop-down menus to complete the
How do you find the Square root of 662.737
The material in which a wave travels is called ____.a.a mediumc.airb.waterd.opaque please select the best answer from the choices provided
When the equal molar amounts of of both the acid and the base were reacts, what happened in the reaction?
According to sociologist william julius wilson, what organizational change in society transformed the inner cities into ghettos?
You are assessing a client recently admitted to your unit for hypotension. while assessing this client, you find a pulsatile mass near the umbilicus. what would
A bowl contains candies of the same size in three flavors: orange, strawberry, and pineapple. If the probability of randomly pulling out an orange candy is 1/9,