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

In a certain triangle ABC , A equals 30°, B equals 50°, and the side AB equals 3 in. Use a protractor and a straightedge to construct the triangle. How many deg
. Why should meat be partially cooked before applying a barbecue sauce? A. So the flavor of the sauce won't overpower the meat B. Because the sugar in
What Is the purpose of a counter argument in a persuasive text?
PLEASE HELP [[99 POINTS!!!!!!}
During the early 1800s, what factor most contributed to the south having an agricultural economy?
someone please help me out. SERIOUS answers only!!!!!! apex questions
need an essay in spanish 150 words and its on who i admire i admire aunt cause she is outgoing ..... can  some finish that off please   i need by today
Which three-dimensional figure has the greatest number of faces
What behavioral difficulties result from fetal alcohol syndrome?
Rotating stock so that the oldest items move first is often referred to as