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

Find the measure of the indicated angle to the nearest degree.
PLS HELP ME ON THIS QUESTION I WILL MARK YOU AS BRAINLIEST IF YOU KNOW THE ANSWER!!
how do you find class width pliz help mi​
Suppose a triangle has two sides of length 32 and 35, and that the angle between these two sides is 120°. Which equation should you solve to find the length of
Hi! ❤️ id very much like and appreciate some usefull adive and asnswer here thanks
Solve using Matlab the problems: One using the permutation of n objects formula One using the permutation of r objects out of n objects You can pick these prob
Which propaganda technique is the presentation of biased information that only offers one perspective on a given subject?
Chứng minh chương trình các môn học về tự nhiên và xã hội có cấu trúc đồng tâm và phát triển.
What is the volume of the solid?
Evaluate ab+bc+ca . If a²+b²+c²=50 and a+b+c=12​