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

What is seen in the image?
In the Lady or the Tiger which paragraph most clearly introduces tension and the structure of the story?A) Paragraph 1B) Paragraph 4C) Paragraph 9D) Paragraph 1
A relative frequency table is made from data in a frequency table. What is the value of K in the relative frequency table? Round your answer to the nearest per
Insurance that adds an extra layer of protection for liabilities not covered by your other policies is known as a. umbrella coverage. b. multilayered covera
people who give donations to worthy causes are know as
Find center and radius (x-3)^2+y^2=8
It was difficult for bright to walk Begin with Bright
During the Great Depression, who believed in broadening the role of the Federal government in resolving the economic crisis? Herbert Hoover Woodrow Wilson F
An author has four main purposes when writing to persuade to explain to entertain and to
Twenty students in Class A and 20 students in Class B were asked how many hours they took to prepare for an exam. The data sets represent their answers. Class