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 amendment calls for the presidential and vice presidential terms to end on january 20th? a. 12th amendment b. 17th amendment c. 20th amendment d. 25th
The boundaries of eras are marked by great worldwide changes in _____.
what was the american economy like in the 18th century?
Which of the following is not a basic economic goal?
The particles that make up a liquid move a. more quickly b. more slowly than a gas.
Energy _____ as it transfers from one consumer to the next
Which of the following statements best describes the religious characteristics of Pakistan and India? A. The majority of people in both nations practice Islam.
The acceleration of gravity on the moon is 1.6 m/s2 and on earth it is 9.80 m/s2 if the weight of a moon rock is 125n what is its weight on earth
A private airplane leaves an airport and flies due east at 192 km/hr. Two hours later, a jet leaves the same airport and flies due east at 960 km/hr. How long a
True or false: you must always yield the right-of-way to persons who are blind.