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 is a legal limit on public assemblies? A. Police protection must be provided. B. Assemblies must be content neutral. C. Banners and signs cannot have ne
Which writer is a part of the Jewish American Literary Renaissance?
what would happen if there no decomposers
Physical fitness attitude can affect a person's level of physical activity. a. True b. False
Medication for STIs only need to be taken until the symptoms go away. Please select the best answer from the choices provided. T F
Choose the magma type which is most viscous: basaltic andesitic rhyolitic
Which of the following soil types is richest in organic material? A. Yellow soil B. Blue soil C. Dark-colored soil D. Red soi
Identify the following as a simile or a metaphor. After the marathon, her legs were spaghetti. simile metaphor
Which leader was assassinated on January 3, 1948? A. Muhammad Ali Jinnah B. Saad Zaghlul C. Mustafa Kemal Atat rk D. Mahatma Gandhi
Yesterday, a Bakery baked 54 loaves of bread in 20 minutes today the bakery needs to bake 375 loaves of bread at this rate predict how long it would take to bak