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

How do people and computers approach problems differently
Which distribution channel for consumer goods is most likely to limit a producers growth
find the length for point a to point b
What is the equation of the function shown in the graph, given that the equation of the parent function is f(x)=(1/7)^x
1. PART A: Which statement.identifies the central idea of the text? O A. It's the federal government's responsibility to pay for universities, not the students
the table shows the cost of the daycare for Lucy's dog this week her dog went 3 full days of day care and 2 half days of day care write an expression for the to
Evaluate (-3 - y) / (x - 4) when x = -5 and y = -3
Please help asap 25 points
What is the least common denominator of 1/4 and 2/5?
a poem that creates imagery represents of the five senses: sight, taste, touch, sound, and smell true or false