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 were life forms affected by the rise in atmospheric oxygen levels that began 2.2 billion years ago?
How is it possible for Mercury to have frozen ice ?
Can someone use the word delta in a sentence
Find Domain of the functionsquare root of (x-8)/x(x-9)
How is it possible for Mercury to have frozen ice ?
Find Domain of the functionsquare root of (x-8)/x(x-9)
what is the answer for (20,8),(9,16) ?
Historians of china have traditionally dated the beginning of Chinese civilization to the founding of the what??
Which equation has the same y-intercept as y=4x-3?a. y-3=x              b. y=8x+3    c. 3-y=4x      d. y=-3+8xWhich of the following is the equation of the line
Scarcity is the condition of not having enough goods and services to satisfy everyone's?