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 the percentage difference between $60 and 45
Can someone help me. Im having trouble 1-5 and 6-40 even only.
What are exodusters? & What are the push factors for exodusters?
Name the region in the United States where opposition to the war with Britain was strongest?
[tex]x = 4y \times 3[/tex]
Six numbers that are perfect squares
What is the correct pronoun for the sentence A ti____ gustan las plantas.
An enormous rifting occurred causing massive floods of basaltic lavas and the release of large amounts of gas. This is a thought to have been the cause of which
translate "we stand" to latin
Your friend posts on social media that she hates social media: is this situational or verbal