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

plz help with this french hw plzzz
Which of the following statements is not true?"Whom" can serve as the object of a preposition."Whom" is an object pronoun."Who" and "whom" are personal pronouns
373 of 500 in fractions and decimal
What's needed to know Right now we are doing unit 1 which is about tensions in ropes and weight and stuff about newtons. We are taking a test tomorrow and I st
On a TI-84, how do you stop it from giving you simply a number for an answer when you put in a polynomial divided by another polynomial?
find the proportionality of y=7.25x
Express 230 in scientific notation
Which three countries have the least access to technology?
a ball is tossed vertically upward rises, reaches it's highest point, and then falls back to its starting point. during the time, the acceleration of the ball a
what is 15.70796327 rounded to 1 decimal point?