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

What is a good metaphor for scornful?
how many times does 96 go into 195
one who is actively involved in government activites
The United States can be described as both indirectly democratic and parliamentary confederal autocratic federal
Which of the following statements about Truman's fair deal is true ?
Math problem solving 9-3 A new car costs$13,000and is depreciating by $900each year.how much will the car be worth after 4 years?
How do you solve the answer to this -6(-3)(-2)
hairlike parts that spin to push a bacterium through water or other liquids are called _________________.
one who is actively involved in government activites
what lake and dam is approximately 50 miles east of mason