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

If a car goes 40 miles per hour, how many minutes will it take for it to go 12 miles
Consider the rectangle. 2x Which pair of expressions represents the area of the rectangle? O 2 (2x) +2 (6) and 4x + 8 O 2 (2x) + 2(6) and 42 +12 O 8x and 6 (2x)
Which words from George Washington to his troops best summarize why the colonists were fighting the Revolutionary War?
Which of the following sentences from the passage best supports the idea that solar ovens are financially affordable? A. Cooking time varies according to the t
You are given the line g with its equation g: 2x - 3y - 6 = 0Write the equation of the line in the form of Ax + By = 1I though I just have to turn it into 2x -
5:7:37, 8:4:20, 6:4:?, 6:10:34
help, please the question and thank you
How a person becomes a commissioner
Work upload. 27 (a) There are 32 students in a class. All the students are either left-handed or right-handed. The ratio of the number of left-handed students t
I need help with this! I WILL GIVE YOU BRAINLIST!