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

Can someone please help me ?
what does etymology study?
The unstated purpose of the Alien and Sedition Acts was to (A) unite the nation in time of danger (B) deport immigrants who were becoming too numerous (C) prote
The unstated purpose of the Alien and Sedition Acts was to (A) unite the nation in time of danger (B) deport immigrants who were becoming too numerous (C) prote
What is the slope of any line parallel to the line 8x + 9y = 3 in the standard (x,y) coordinate plane?
which explorer sailed for france?
Differences between DNA and RNA include which of the following? (1) RNA consists of one nucleotide chain. (2) RNA contains the nitrogen base uracil instead of t
Can someone please help me ?
Differences between DNA and RNA include which of the following? (1) RNA consists of one nucleotide chain. (2) RNA contains the nitrogen base uracil instead of t
Why were people from Africa brought to Georgia?