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 internment of Japanese American resulted in
1. They _______ for 3 hours when the storm suddenly broke. A. had been running B. have been running C. are running D. will be running 2. No matter what happens
1 Who are passing by Manuel at the beginning of the story? A Manuel's friends B young people С Manuel's enemies
i need help anybody ?
What is the similar meaning of home in nepali language​
How is the graph of the parent function translated A) left 3 units up 2 units B) right 3 units and down 2 units C) right 3 units and up 2 units D) right 2 u
The quality of food prepared for students in your school has become very poor. Write a letter to the principal complaining about this and explaining ways in whi
Algebra 1 need help ASAP
a kitchen floor is 9 feet long and 6 feet wide. the number of yards of molding needed to old the linoleum around the outside edge is
what is consumerism mean