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

The difference between the circumference and the radius of a circle is 111 cm. What is itradius?​
indicate how resources will be allocated in a market economy​
Add labels for mass extinction and adaptive radiation:
Temperature is independent of mass A- True B- False
Match each example to the correct term. Drag each tile to the correct box. Imagery, symbolism, euphemism, paradox, idiom
Implement A* graph search. A* takes a heuristic function as an argument. Heuristics take two arguments: a state in the search problem (the main argument), and t
Distance is the only factor that effects travel time True False
Name and explain TWO factors that contribute to a detrimentalrelationship.​
Question Suppose Shelly invests $2650 semiannually into an annuity for six years. At the end of this time, she has $40,000. How much of this balance is from int
What is a Pyramid? Explain it.​