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

When economists study aggregate supply and aggregate demand, what are they studying?
15. If f(x)=9x+1,find f^-1(f(3)).
write 5 decimals that have at least 3 digits to the right of the decimal point
Read the sentence. The waiter placated the angry customer by taking his meal off the bill and bringing him a free dessert. What does placated mean?
in a longitudinal wave the motion of a disturbance is _____ to the wave motion A.parallel B.opposite C.perpendicular D. in the same direction
Many major cities are located near rivers and waterfalls. True False
Darius was beaten by his father and peers as a young child; now that he's an adolescent, he beats on kids smaller than himself. he is demonstrating a _____ patt
I need all the answers for this worksheet
what is the product of 7/8 and 14
A trampoline has a jumping surface that is 10.35 feet long and 9 feet wide. what is the area of the jumping surface?