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

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
Jill purchased fruit juice boxes for a party . She purchased 1 case of 44 boxes and several packs containing 4 boxes each.Let p represent the number of 4-box pa
Calculate the following limit:
PLEASE HELP What is the mode of the following set of numbers? 51, 73, 82, 51, 73, 103, 73, 125, 82, 125 51 73 125 82
PLEASE HELP I GIVE THANKS
This weekend you are planning to complete part of your assignment at the library to do this you need to store data on a removable storage device
PLEASE HELP I GIVE THANKS
What is 10/25 simplified
A rectangles length is 7 inches greater than its width. If the perimeter of the rectangle is 110 inches, find its length and width. I think it's w (w+7)=110
explain the steps you would take to write 36/10 as a decimal