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

73 POINTS ANSWER QUICKLY AND CORRECTLY, WILL GIVE BRAINLIEST What is the equation of the line shown in this graph? Drag and drop the expressions to write the e
ann can swim 20 laps in 8 min. how long will it take to swim 9 laps? show your equations(s).
Please help me with this I have to do a test tomorrow!
Which word best completes this sentence? Tú bebes agua ______ tienes sed. A. debes B. crees que C. porque D.prefieres
Which are examples of results of good credit? Check all that apply.
WILL GIVE 30 POINTS THIS IS URGENT
What is the BEST description of the following list? 1. Eye color 2. Height 3. Hair color 4. Ear shape A) learned traits that can be acquired through practice
Rewrite as a simplified fraction
Where do subduction zones often occur
the contumelious or sconful turn of his nostrils communicated hus distace for her presence what are the type of context clues used in the precedding sentance