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

How to simplify square root of 210?
In the Sumerian civilization, the purpose of a ziggurat was to
A faction is an opposing group within a party. true or false?
43.586 rounded to the nearest hundredth
true or false all whole numbers are integers
i need a paragraph on work experience like where i went ,what i did,what my boss was like and what i did during the work experience ? can anyone help?!
How to do 103,727,495 in expanded form
A faction is an opposing group within a party. true or false?
Charlie has x state quarters. Ty has 3 more quarters than Charlie has. Vinnie has 2 times as many quarters as Ty has. Write and simplify an expression to show h
22.) -5n+3(6+7n) 23.) -2n-(9-10n) 24.) 10-5(9n-9)