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

Help on this question explain my answer please!
Give an example of how the ability to construct good arguments could help you in your career or in your daily life
what is the x-intercept of the graph of the function f(x)=x2-16x+64?
In the middle of the page draw an equilateral triangle with 2 inch sides and the bottom parallel to the bottom of the page. From the center of the right side d
Which of the following is a quadratic function? A. y = 4 ( x + 3 ) B. y = ( x - 5 ) ^2 C. y = 3x D. y = -2 / x^2 + 1 PLEASE HELP
Who is the final arbiter of the actual sentence served in a state that relies on an indeterminate sentencing scheme?
Complete the multiplication: AB. A. B. C. D.
Find the missing value. Show your work. please
Imagine that you have never been a cigarette smoker, but suddenly you begin to hang out with a group of people who smoke cigarettes frequently. after a few week
John sees that kris is about to step into the path of an oncoming bus. if john does not warn kris of the danger, john is liable