kingswriters6396 kingswriters6396
  • 07-03-2024
  • Mathematics
contestada

A student tries to write an algorithm that computes the sum of the first 9 positive integers. He writes:
procedure sum(n: positive integer)
sum := 0
while i < 10
sum:= sum + i
The professor says the algorithm is not going to achieve what's intended. Why?

Respuesta :

Otras preguntas

ANYONE KNOW SPANISH?
The owner of an electronics store received a shipment of MP3 players at a cost of $64.25 each. If he sells the MP3 players for $99.99 each, what is the percent
Find the sale price of each item. Round to two decimal places when necessary. 8. Original price: $45.00; Markdown: 22% 9. Original price: $89.00
What is the proportional relationship of 15 mL to 3.75 L
Anything helpppsssss
Why is a scientific theory the most powerful explanation scientists have to offer?A)Many different scientists have added data from their own experiments to buil
Why is it important to choose precise words? A. To make writing the piece more interesting B. To avoid losing credibility and confusing the reader C. To impress
PLEASE HELP! What is the area of this kite? ____sq
please help for brainliest!
Kendra lost one half of her allowance but her mother gave her four more dollars now she has $9 how much was her allowance