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

On the pH scale higher numbers indicate ?
...a still wider region rolled away into unexplored and marvelous distance. Which best explains how the writer's use of the underlined word creates a hopeful mo
comenzar (to begin) II III
PLEASE HELP ME. There is 2 questions
waluigi for smash who agrees ​
ILL BRAINLIEST YOU AND GIVE YOU 20 EXTRA POINTS IF YOU GET IT RIGHT PLEASE HELP ME
If the graph of a function increases as x increases and decreases as x decreases, the degree must be _____
The landforms in Northern Europe were formed by glaciation? True False
answer please need asap
Kelly drove 385 miles to visit her friend. She drove at an average rate of 55 miles per hour. How long did it take her to drive to her friend's house? A: 5 hour