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 a formula for the nth term of the given sequence 18,21,24
The diameter of a baseball is approximately 3 inches. What is its volume? Round your answer to the nearest whole number. A. 9 in^3 B. 13 in^3 C. 113 in^3 D. 14
Achooo is an example of what what figurative language?
What is the equation of the line with a y-intercept of 4 and a point (8,8)? ​
Which country lost the most land in the Treaty of Paris? Spain Great Britain France
A certain field is a rectangle with a perimeter of 870 feet. The length is 191 feet more than the width. Find the width and length of the rectangular field
Can a parallelogram also be a rectangle
Marsha receive an email saying that she won a free cruise to Alaska. What Marsha didn’t realize is that the email was fake and contained a virus that infected h
How did the invention of synthesized ammonium affect humanity?
How many significant figures are in the number 90027.00?