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

The two trolleys move at a constant velocity what is the magnitude of the acceleration of each trolleys​
How do these uprisings compare to each other? Check all that apply. Unrest led to protests and demonstrations. Some governments used violence to end protests. M
how can I master the computer organization ​
A gardener makes a new circular flower bed. The bed is ten feet in diameter. Calculate the circumference and the area of the circular flower bed. circumference
Solve for x. 2/x^2−4 − 1/x+2=3/x−2 −32 −12 23 2
The sun’s atmosphere contains the
Scientists studied a deer population for 10 years. They generated the function f(x) = 248(1. 15)x to approximate the number of deer in the population x years af
I really need help it’s about the solar system to fill in the blanks and I really do not know what to do at all
What is the slope below?? Please answer quickly! Due tonight.
Il est interdite de parler anglais dans cette classe. Correct Incorrect