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

Calculate the angle of depression, x, if the boat is 750 ft. away from the light house and the light house is 300 ft high. Round your answer to the nearest tent
Match the characters in Jane Austen's Pride and Prejudice to the traits they display. Mr. Collins Mrs. Bennet Mr. Darcy Elizabeth Bennet witty, sharp-tongued, i
What practice of Clovis I and Charles Martel did Charlemagne continue,helping him hold his kingdom together? A. He welcomed Islamic scholarship. B.He created an
Pls give me the easiest solution
Using 8, 11, 9, 1, and 8 create a problem in which the answer equals 2. You may use operations more than once.
What is the angle of rotation of the image? A. 60° B. 90° C. 120° D. 180°
Why did the study of law flourish at this time? a. it could resolve disputes between king, subjects, church, nobles, commoners, merchants, and so on. b. rom
I really need help with this question
Which expression can be used to determine the slope of the linear function graphed below?
Explain, with supporting examples, whether or not viruses are alive.