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

Express log0.5 in terms of a and b if a=log2 and b=log3. Thank you and please explain! :D
1. According to President Harry Truman, what is one problem when governments are controlled by the will of a minority? 2. According to President Truman, what
Why did the young girl at Buna risk her safety to speak to Elie in German
Which type of poem tells an exciting story using a fast rhythm and a regular rhyme scheme?
The _____ perspective of psychology emphasizes the importance of unconscious influences and early life experiences in explaining the underlying dynamics of beha
Turning milk into plastic easy
Can u guys answer 1-5 pls?
what is the domain and range of the relation shown in the table?
In, addition to water, what would most likely be found in a plant central vacuole? A) toxins B)chlorophyll C) food molecules D) damaged organelles
help please, I will give brainliest
good job