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 first land battle of the civil war took place near ________, Virginia, on july _ _, 18_ _At this battle, the union army ___________ the confederate army.wha
Whats the equation of a circle centered at (7,1) that passes through (-2,10)
you are facing east. you turn left, then left again, then about face, then right. which direction are you finally facing?
What is the simplified answer to the problem 9+5r-9r??
Which sentence does not contain any errors? A. Fortunately, information on they're collars helped us locate the owners of the dogs.
Solve for y.8^3-3y=256^4y
If x= (a^2)/b, which situation would always double the value of x? (1) Doubling the value of a(2) Halving the value of a(3) Doubling the value of b(4) Halving t
how can astronomers use rocks from the moon to estimate the age of the solar system ?
could you tell me what is a mutagen?
There are 25 servings in 12.5 once bottle of olive oil. How many oncees are in a serving?