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 illness did samuel coleridge battle with?
What would be the best way to measure Carbon Dioxide in a Soft Drink can? And yes, we were going to do it by taste.
The purpose of Mohandas Gandhi’s actions such as the Salt March and the textile boycott was to
The length of a rectangle is 2 more than twice the width. The perimeter is 76 feet. Find the length and width of the rectangle.
6x-3y=20 through (4,-3)
The following data values represent a population. what is the variance of the values
Devloping nations, like Africa , eat a ___-based diet. A) grain B) beef C) chicken D) lamb
Look at the table of values below
which one of the following words is an antonym for cautious
what are the different types of gons. (hexagon, octagon, decagon)