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

after reading the tragedy of julius caesar, why could the reader consider mark antony the antagonist of brutus?
Explain the Phrase:"slowly the cold seeped into the awe"
What is the function rule for (1,6) (2,24) and (3,54)?
Which of the following processes is an example of a physical change? photosynthesis rusting sublimation combustion
How did the British planned to attack the Germans at somme
How are continental glaciers diffrent from valley?
When was MAGCON created?
12 liters is about how many quarts
An online reputation is _____. -always negative -always positive -unprofessional -important
how fast would a meter stick be moving if the observer measures a length of 60 cm.