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

country without any river is _____​
An object has a mass of 60 kg. It decelerates from 50 m/s to 20 m/s when a resultant force of 300 N acts on it. For how long does the force act? A 0.071 s B 0.
would really appreciate the help, can't seem to figure out the answer;-;​
What is the acceleration of the object? What is the acceleration of the object? in m/s2
Suppose you're painting a 10 ft by 10 ft wall and you find that you need 1 can of paint. How many cans of paint will you need to buy so you can paint a 12 ft by
Drag each digit into each box. Evaluate your expression. Try to find the result closest to 100. Record the value of your expression
5 more than a number is twenty
Fiona and her friends were watching a TV show about organisms found in the subtropical forests of southern China. These organisms were acid tolerant and lacked
Whats the verb? Is that a tarantula?
Select all ratios equivalent to 15:6 10:4 7:2 20:8​