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

36 is _______% less than 60?
on sara's computer, 3/8 of the hard drive is files. Of the files, 1/6 are games . What part of the hard drive is games?
3 ( 4d + 1 ) - 9d = 6 - 2d
two methods of active transport
how have computers changed mapmaking in recent years
10u + 7 = 8 ( 2u - 4 ) - 9
how have computers changed mapmaking in recent years
on sara's computer, 3/8 of the hard drive is files. Of the files, 1/6 are games . What part of the hard drive is games?
Why did Henry Clay group his resolutions in pairs in the Compromise of 1850?
What were the 4 major truths Jefferson presented in the declaration of independence?