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

Do the numbers 2.7,3.6,and 4.5 form a pythagorean triple?
Nielson Motors has a share price of $50.00. Its dividend was $2.50, and you expect Nielson Motors to raise its dividend by approximately 6% per year in perpetui
24-6+7 multiply by 7
47-10 in french math lol
Which expression is equivalent to the area of square A, in square inches? 1/2(10)(24) 10(24) (10+24)^2 10^2+24^2
The molar concentration of NO3− ions in a 0.054 M solution of Ca(NO3)2 is ______
WILL GIVE BRAINLIEST IF ANSWERED FAST!!!
Which is the first siimple molcules of food produced during photosynthesis?
please break this down and explain in detail
What is a 'call to action' in regards to persuasive speaking?