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

60 is 10 times as much as what?60 is 1/10 of what?
Angela can swim 1,700 meters in 40 minutes. What is Angela's unit rate
What is 25.2<1.5y+1.2
how do oceanographers get to the bottom of the ocean?
60 is 10 times as much as what?60 is 1/10 of what?
Which condition was most necessary for a monarch to gain power? why?
Which causes athlete’s foot?
find the product ad quotient of each pair numbers 24.6 and 1.2
43.586 rounded to the nearest tenth
Write an equation to model each situation thee solve ! The tallest player on the basketball team is 77 3/4 in. Tall. This is 9 1/2 in. Taller than the shortes