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

Which statement is correct?
Why did mexico give up the territory called the mexican cession? *
How many people die due to viruses before vaccinations were invented
How has the global warming affected the ecosystem
what happens when spyrogyra is placed in saline water?​
When their infants were three months of age, James McHale found that in his middle-class sample of parents, about __________ of women and ________ percentage of
At a later time interval, the thrust force is 50N, the drag force is 20N, the lift force is 40N, and the weight (gravity) force is 40N. 25N Drag 40N Lift 50N Th
Help picture below problem 17
A circular "No Parking" road sign has a diameter of 26 inches. Which measurement is closest to the area of the sign in square inches? 81.64 in.² 163.28 in.² 530
I need help with number 13 please hurry