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 is the name of the Nazi anti-Semitic film which the Nazis presented as a documentary that spread false and stereotypical messages about Jews? Jewish Parasi
How many atoms of helium are in 2.50 mol of Helium?
Which client need is the highest priority using Abraham Maslow's hierarchy of human needs?A. SecurityB. EliminationC. SafetyD. Belonging
give two ordered pairs that are not solutions {y < -3x - 4 {y < 2x - 1
Determine if the table shows a proportional relationship. x 36.5 23.2 63.3 y 18.25 11.6 21.1 Yes, it is proportional because the ratios for y over x are all
Suppose y varies directly with x, and y = 8 when x = –6. What direct variation equation relates x and y? What is the value of y when x = –2?
8 7/8 + (7 5/6 − 2 1/3)
Write the fraction 32/36 in simplest form
How te be responsible
round 86057 to the nearest 1000​