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

I was born on February 5,2006 how old would I be nowA.11B.9C.13D.10
C6h12o6 o2 -> co2 h2o what is this formula for?
Mrs. smith has blood type a. her father has blood type a, and her mother has blood type b. if mr. smith has blood type ab, what is the probability that they w
What is 3 6/10 simplified?
anybody else eat food?
What is the rational number equivalent to
Q 1 , 2 please ........
Which word phrase represents this expression? g + 24 A.the sum of g and 24 B.the sum of g and 26 C.the difference of 24 and some g D. the differe
What causes rickets? lack of calcium lack of vitamin D lack of vitamin C lack of adequate sunlight
How many times does 6 go into 87?