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

this above all : to thine be true about ourself
What two measurements are needed to determine density?
a student performed an experiment by placing the de-shelled egg in a concentrated salt solution for five minutes .what changes did he observed in the egg? give
change 196% to a whole number
Using the break apart method to find each product. What is the method for 3X5?
Based on current immigration trends, which religion is most likely to increase in western Europe over the next twenty years?
Simplify the given expression: (−5 + 3i) • (1 − 2i)
Most of Africa's economies are best described as primary, secondary, tertiary or quaternary?
mom paid $2.40 for a 3/4 pound of cereal, how much is that per pound
Running for his life, Riley travels 100m in 9.83s. What was his average velocity in "m/s" and "km/h"?