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

When and where did jainism develop ?
Choose the property that justifies the outcomes. 5(3*8)=15*8 Associative Property of Addition Additive Inverses Commutative property of Addition Multiplicative
The Tudor monarchs of 16th century England used the Court of the Star Chamber to...? A:promote the commerce of the kingdom B:replace Parliament as a legislative
The most important river in West Africa is the _____________. Senegal Gambia Niger Benue
Oranges have hundreds of seeds. What does this tell us about their pollination?
Simplify and select the answer with the appropriate restrictions for the variables. 4x^2 + 8x/x^2 - x - 6
a yogurt costs 55 pence . how many yogurts can be bought for 3 pounds
What were two main focus of the Reagan administration?
The 18th amendment and the volstead act were victories for which long enduring cause
What do tobacco, cotton, and rice have in common? They were all cash crops. They were all subsistence crops. They were all grown on small farms. They were all g