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?