brandonrhodes8637 brandonrhodes8637
  • 03-03-2020
  • Engineering
contestada

What does the following program segment do? Declare Count As Integer Declare Sum As Integer Set Sum = 0 For (Count = 1; Count < 50; Count++) Set Sum = Sum + Count End For

Respuesta :

thamimspartan thamimspartan
  • 10-03-2020

1225

Explanation:

This segment helps initialize sum as 0. The for loop is used to increment with every execution and it is added to the sum. The loop runs 49 times and every time the count is added to the sum. In short it is the sum of first 49 natural numbers i.e 1+2+3+......+49.

Answer Link

Otras preguntas

Dividend: 2x3 + 11x2 + 18x + 9 -6x3 - 15x - 9 2x2 + 5x + 3 Quotient: 2x4 + 11x3 + 18x + 9 2x3 + 5x2 + 3x 2x2 + 5x + 3
Hahah I look pregnant don’t I
Which could be the side lengths of a 30°-60°-90° right triangle? A 2, 3, 2 B 13, 2/3, 3 C 3, 3, 32 D 3,3/3, 613
How does the structure of “Peace on the Mountain” communicate a different meaning or style than the structure of the poem?
help ill give free brainleist
Help pppppppppppppppPPPPPPPP
For what type of writing is spatial order usually best? O A. Persuasive O B. Narrative O C. Expository O D. Descriptive
The most famous book of Dostoevsky?
Does a bodybuilder or a cyclest most likley to be LEAST flexiable? this is actually a question no joke pls help. i think its a cyclest.
19. A piece of unknown metal with a mass of 62.0g and an initial temperature of 95.3°C is dropped into 100.0g of water with an initial temperature of 27.0°C. T