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 game excites the people. They are (excite)----------people ing or ed
What did you do for your service action project?
what's one thing washington put into place that's still relevant to the presidency today? how did he use this policy? how does biden use this policy! (please a
Describe the end behavior of the function f(x)=-2x^4- x^3 +3.
Order these numbers from least to greatest.4.5, ,4.484.048 , 4.4851
Change the sentences to passive voice. (a) They introduced me to her husband (b) Someone sold this old hat to my wife. (c) They are pushing the car. (d) Someone
Necesito tener información sobre Estados Unidos entre 1917 y 1939 para un seminario.
20 POINTS!! please help i need it asap!
-Recursos Minerales Energéticos daños que ocasionan.
Nyasia had 16 M&M's on her desk. She had 2 groups of M&M's with x amount in each and another group with 4 M&M's. How many M&M's were in the iden