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

ILL GIVE 94 BRAINLY POINTS!!! factor as the product of two binomials x^2+8x+12 please show work
What is umbrakenesis?​
Which instrument takes more air flute or tuba?
On the Testimony of Matthew Crabtree, Sadler Commission, 18 May 1832,This is the source: (answer by using this source only).Source 2: Testimony of Matthew Crabt
How many numbers between 1 and 100(inclusive) are divisible by 3 or 10
Twelve boxes of pencils cost $16. Which equation could you use to find the cost per box
what would emma watson and the speaker in an obstacle disagree with regarding the path to equality?​
Potato farmers in Ireland during the mid 1800s all grew the same type of potato. the potato plants were all produced as clones of one another. when a fungus inf
Which result from an increase in the greenhouse effect
Find the area of the triangle, also am I correct???