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

Please help me with this!! Thank you.
In 1816 John C Calhoun proposed what
how many times are equal to 40000 pounds
What is the surface area of the composite figure? (Use 3.14 for π .)
Which statement explains why a blue house looks blue? The house reflects mostly red and green light The house absorbs mostly blue light The house reflects mostl
Jane gets a simple interest loan for $2500. If the bank charges 3% interest rate how much will her balance be after 5 years?
A continental polar air mass forms in a. the Pacific Ocean. c. the Gulf of Mexico. b. northern Canada. d. the desert Southwest..
Ok GUYS SO I AM DOING A PROJECT ON THE BOOK TIES THAT BIND TIES THAT BREAK BY LENSEY NAMIOKA ANYWAYS I WOULD LIKE TO KNOW HOW OLD IS JAMES IN THE BOOK
Why was d-day such an important historic event?
At least one of the ingredients in tobacco can be beneficial. a. True b. False At least one of the ingredients in tobacco can be beneficial. a. True b. Fa