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 about play soccer at the weekend? A. what B. play C. at D. the weekend
Question 21: I expect you to find your money somewhere in your bedroom. => I expect
As a branch of study economics is said to be central to national planning discuss
Which is these came first, the chicken or the egg?​
Explain any four qualities of a good society in brief​
Nick needs one more class to complete his schedule. There are 5 writing classes, 3 history classes, and 4 mathematics classes that can fit into his schedule. If
The negative effect humans have on the stability of the environment is mostly directly linked to an increase in
I need help ASAP!!Please explain how to do the problem
Help me plz thank you
The angle of the resultant vector is equal to the inverse tangent of the quotient of the x-component divided by the y-component of the resultant vector the inve