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

Calculate final temperature of 50 g of water heated with 20000 J. The heat capacity of water is 4190 J /kg/ ºC.
A motorcyclist rides 973.50 miles using 29.5 gallons of gasoline what is the mileage in miles per gallon
Compare the militarists in japan with the european fascists?
A bottle has a volume of 40.2 liters.
Can someone help me write slam poetry about fake friends? Please as it’s due tomorrow
Which type of heat transfer can happen through empty space?
Cooperative federalism is characterized by
Clinical trials model the effects of new drugs on human society. Which of the following is used to avoid bias in a clinical trial of a new drug? A. High self-co
Normal sinus rhythm is a regular rhythm found in healthy people. What is sinus arrhythmia?
A study to determine the sensitivity and specificity of a new test for celiac disease is conducted on 7642 people. Studies have shown that celiac disease occurs