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 can you tell that this is a combustion reactionn
Please help!! I'm hoping to give fifteen points to whoever can answer this correctly! (No bs please) Options for the first question: heading, index, glossary
Llllllllllllllllllllllllllllllllllllllllllllllll
Wie heiBt die groBten Stadt in drunken Stast?
Please help. If this isn't done by today i'm grounded :( A _____ magnet can be made by rubbing a permanent magnet the same way along an item. The alignment of a
Judy had a bag with 12 DVDs, 12 marbles, 11 books, and one orange. What percentage of the items in the bag are DVDs
Give the IUPAC name for the following molecule.
Rachel can walk 2.5 miles in 40 minutes at this rate how far can she walk in one hour
Also known as motion energy
Stalin was: A cruel B lively C benevolent D kind