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

Jayden created a cell model using a glass bottle with a cork. he said that the cork could be opened to eliminate waste material that���s generated after digesti
7. During what process in the cell cycle does one cell become two cells?
Name 3 objects that have gravitational potential energy?
QUESTION 3 What proportion of American adults are technically obese (have a BMI in the obese category)? A. About 1/2. B. About 2/3. C. About 1/8.
Why is the photosynthesis equation often written with several arrows ?
Which phrase defines enumerators as it is used in this sentence?
Match the following: (20 points) Question 11 options: El cheque de viajero La recepción El dinero contante El balcón La casa de cambio Las escaleras La c
I need help! How does a bear interact with the Cryosphere?
find the future value of $2,000 deposited at 6% for 3 years if the account Pay simple interest in the account pays interest compounded annually
Please help me with the blank ones. I've been working on it for so long.