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

Acetylene gas, c2h2, burns in oxygen to produce carbon dioxide and water. if 60.5 g co2 are produced when 22.6 g c2h2 react with sufficient oxygen, what is the
Why don’t all molecules contain only single bonds
Please I need help . I will brainlist
In addition to strong words and effective sentences, what other structural elements should writers strive for when crafting documents? consistency of ideas deno
Suppose you tried to determine where we are in our galaxy by looking in different directions to see how many stars you could see. you would find _____. [hint: d
What is the volume of a box measuring 1mX5mX6m?
PLEASE HELP QUICKLY! Which of these tables represents a linear function?
Please help thanks!!
One of the oldest surviving examples of sub-saharan art comes from the
The Eastern Alberta DC Transmission Line is a project that began construction in 2012. It includes a 500km, 500kV power line from the Brooks area to the Edmonto