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

What is the product of 3/5 of 10
Which statement describes a goal of the Populists in the late 1800s? A. They pushed for lower tariffs on imported agricultural products. B. They campaigned for
write a compound inequality that represents the evelation range for each type of plant life
would you please help me to solve this 9.1x10^-5)^-4
Which statement about the Sacco-Vanzetti trial of 1921 is true? A. Many people believed they were convicted solely because they were anarchists. B. The evidence
Describe a time when you felt antagonized or were responsible for antagonizing someone yourself.
WHICH TWO COMPOSERS DID BEETHOVEN MEET IN HIS EARLY TWENTIES?
give the next term and the nth term of 8,13,18,23,28
what do planets and stars have in common
Which animal could a bulldog mate with to produce offspring? A. sheepdog B. beaver C. raccoon D. tabby cat