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

Dr. Seals borrows $15,000 to remodel her backyard. The interest rate is 3%. The interest is compounded twice a year for two years. How much is the total she pay
Can someone Help please
Chronology and problem-solution
right answer get brainliest
Golf Ball Inc. expects earnings to be $10,000 per year in perpetuity if it pays out all of its earnings in dividends. Suppose the firm has an opportunity to inv
Question 3Work out...​
The diagram below represents the bone arrangements in the front limbs of three different species of mammals. The similarities and differences in these limbs sug
Black Panther Essay
Find the value of n that satisfies 2(n+1)! + 6n! = 3(n+1), where $n! = n\cdot (n-1)\cdot (n-2) \cdots 2\cdot 1$.
Danielle sells 3 donuts for $9. Write an equation to represent the relationship between the number of donuts sold and the earning Halp