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

Why did Southerners oppose the creation of two new territories, Kansas and Nebraska? *
what country has a very bad History?
125 grams of solid sodium hydroxide is combined with an excess of aqueous hydrochloric acid. The heat of neutralization for the formation of water -55.9 kJ/mole
The inventory data for an item for November are: Nov. 1 Inventory 20 units at $19 4 Sold 10 units 10 Purchased 30 units at $20 17 Sold 20 units 30 Purchased 10
In October of 1957, the Soviet Union shocked the United States by
How does mrs. White reaction to wishing on the monkey's paw compared to mr. White's
Accounts receivable arising from sales to customers amounted to $100,000 and $70,000 at the beginning and end of the year, respectively. Credit sales reported o
A global corporate-level strategy differs from a multidomestic corporate-level strategy in that in a global strategy: Group of answer choices a.competitive stra
What groups were not successful in exploring North America
the globe used in social studies class has a diameter of 42 centimeters, What is its volume