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

At the concession stand of a school foot ball game, sandwiches cost $1.50 and a bottle of water costs $.90. The school sells 40 sandwiches and 80 bottles of wat
Who is SohCahToa Joe? on Csi geometry:trigonometry I need the answers.
names is often given to the journey of africans who were brought to the americas as slaves?
You are standing 1 meter from a squawking parrot. If you move to a distance three meters away, the sound intensity will be what fraction of its original value?
Henry can ride his bike 23 miles in 2 hours. The store is six miles away. About hoe long should it take Henry to ride his bike to the store?
what derived unit is usually used to express the density of liquids?
three things scientists learned about earth in beginning of 1800s
THE EXPRESSION (TAN THETA) (CSC THETA) IS EQUAL TO?
Sound: The more _______ a sound has, the _________ its volume is.
How far does Franklin Roosevelt deserve his reputation as one of the greatest US presidents?