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

plzz help?? Why aren’t most materials magnetic? A. Their magnetic fields are single not combined fields. B. Their magnetic domains are arranged in the same dir
What is 40+30-3+4-4 divided by 4
A leftward shift of the supply curve for oil in the united states is most likely to result from:
One significant problem facing texas in the future involves
9x-3+10-5x=9x-5x-3+10 the question is: list which of the associative and commutative properties are being used
need help idk how to slove this
According to the Declaration of Independence, when should the people have the right to change their government?
According to the puritan doctrine of predestination, how could one influence whether they were sent to heaven or hell after death?
He points a = (2,1,1), and b = (3,2,3) are opposite corners of a solid box whose sides are parallel with the coordinate planes. find the length of the shortest
What is the most important factor from a village to a city?