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

Was macbeth a tragic hero led astray by the witches' predictions or simply a greedy, ambitious killer?
Ben is preparing a package to mail to his friend in Switzerland. The parcel service he is using demands that his package be no greater than 55 cm on any side. I
Why is much of the money from tourists never seen by the local people? Tourists spend little money at local vendors and instead seek out familiar th
whats the best workout for your abdominal muscles
Sarah is a 25-year-old female who is 8 weeks pregnant and has a urinary tract infection. what would be the appropriate antibiotic to prescribe for her
Mildred takes a pound of frozen hamburger meat out of the freezer and puts it into the refrigerator. Which of the following best describes the direction of heat
HELP WILL MARK BRAINLIEST FOR CORRECT.
What basic form of energy is present in blowing wind?
Help help...... please
Which belief was generally held by the delegates to the Constitutional Convention of 1787?