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 of the following is an integer but not a whole number
The lowest value of the henry's law for methane gas (ch4) will be obtained with __________ as the solvent and a temperature of __________ k.
Samantha travels 140 miles n 2 hours what is Samanthas speed in miles per hour
Ba(oh)2 is a strong electrolyte. determine the concentration of each of the individual ions in a 0.550 m ba(oh)2 solution.
How did the babylonians use and adapt sumerian mathematical knowledge?
1. At which point is the vertical velocity equal to zero? 2.During which part of the projectile's path does velocity increase?
A father is 4 times as old as his son. in 20 years the father will be twice as old as his son. find the present age of each.
Can someone please please help me with this I’m sooo confused
PLEASE HELP ASAP!!! Will mark brainliest.
during the second industrial revolution which system of production dominated in factories