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 length of a rectangular is one less than twice the width. Find the length + width, if the perimeter is 40
What is the formula of Sodium Sulfide? A) Na3S₂ B) NaS₂ C) Na₂S D) Nas
It costs $2.50 to rent bowling shoes. Each game costs $2.25. You have $9.25. Write and solve an equation to find out how many games you can bowl.
what is 6,389 divided by 27
solve this equation Thank you!!
any g,,,irl can be my bestie forever​
How do you drown a blonde?
How are you feeling today
Which of these would be least important to include in a summary of this article? A. Rodrigo learned to play piano in Temecula, California. B. Rodrigo's emotiona
How did the terrain of Bunker Hill assist the Patriots in their battle against Britain?