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 ICC was formed to A. oversee railroad operations. B. control interstate commerce. C. make new transportation laws.
I am a number between 20 and 30. When you divide me into 6 equal groups, there is an even number in each group and 2 are left over. What number am i?
A lack of vitamin ______, may lead to scurvy. a. c b. a c. b d. k
what is the sum of the first five terms of a geometric series with a 1=20 and r=1/4 please help me!!!
who started calling them 'founding fathers'?
Find the sum of the measures of the angles in the polygon. A. 1,080° B. 1,120° C. 1,260° D. 1,440°
European nations were able to dominate other countries during the period of colonialism because _____. they had larger armies they had superior communication, t
Definition of pediophobia
How many nouns are in this sentence: Tanya ran and jumped quickly.
Do you know when the last bus leaves? Which kind of clause are the words in bold? A. adverb clause B. noun clause C. adjective clause