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

Which is the correct solution set for 4x^2 +4x -3 = 0? (1) {2,-3}(2) {1/2, -3} (3) {1,2}(4) {1/2, -3/2}
Baker university hired its first coachj in?
What is Taurine? Please help :)
At the start of "The Necklace," why does Mathilde's husband go through "great trouble" to get an invitation to the ball?
Aside absorbing water and nutrients, what other functions do the roots serve?
list the 6 characteristics of american economy and explain how they help the economy grow
what are the components of blood?
what is the farthest distance a human has ever been from earth?
Compare the various effects that alcohol has on the mind and body at two different blood alcohol concentrations.
what are the effects of boiling sulfuric acid?