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 function has the solution set shown in the graph?
What do you think of when you hear the word Renaissance? Write your response in three to four sentences.
Determine the total time that must elapse until only 1/16 of an original sample of th-234 remains unchanged.
How might the history of korea have been different if united nations forces had not stepped into oppose the north korean invasion in 1950?
Identify the specific sensory receptors for each of the five common senses.
Everfi the person who receives financial protection from a life insurance plan is called a:
When did the eastern part of the Roman Empire fall?
Find the equation of a line passing through the point (−3, 5) and making an angle of 16° with the x-axis
What will be the value in twenty years of $1000 invested at the end of each year for the next twenty years?
A 2000 calorie diet in which carbohydrate provides 50% of the calories would provide how many grams of carbohydrate?