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

How did the Ku Klux Klan impact the South after the Civil War? PLEASE HELP!
1 ? x + 5and Which line is parallel to the line y = passes through the point (-2, 1)? x+ O y=x+3 1 y = +2 1 y = 4 *- oy- 1 -X y=-2
The circle below is centered at the point (-3,4) and had a radius of 3. What is it equation? ( top answers gets )
what is the sum of 1 2/5 and 5 3/4​
Can you help me with this.
The best shoes to wear for driving are A. sandals B. flip-flops C. sturdy shoes D. high heels
−30=5(x+1) solve for x pls help
which theme is reflected in the passage ?
surface area of a equilateral by hand
If 2x = 60, find the value of 6 - 7x