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

9. if you wanted ______, I como with you to the store. ​
Which theory examines how information quality impacts computer-mediated communication? a) Social Cognitive Theory b) Information Processing Theory c) Media Ric
4d+5d-6+3d-4d+5 Terms Like Coefficient Canstants
In a triangle the angle opposite to the longer side is greater than the angle opposite to the shorter side (two figures of different measurement must be drawn )
express as a triniminal (3x-7)(x-4)
PLEASE HELP!!! 50 POINTS What is the relationship between individual |-1 and individual |||-2?​
Please help, A student sets up the following equation to convert a measurement. (The ? stands for a number the student is going to calculate.) Fill in the mi
__ is the loss of tissue differentiation and function that is characteristic of most malignancies. a) Metastasis b) Anaplasia c) Hyperplasia d) Dysplasia
7(y-2) 21=(2y)(3) solve the equation
Which theory examines how information quality impacts computer-mediated communication? a) Social Cognitive Theory b) Information Processing Theory c) Media Ric