TRUE or FALSE The following procedure satisfies the finitene
TRUE or FALSE: The following procedure satisfies the finiteness characteristics of an algorithm.
Procedure average (a_1, a_2, ..., a_n: positive integers) sum: = 0 k: = 1 while n > 0 sum: = sum + k average: = sum/nSolution
Finiteness – the algorithm stops after a finite number of instructions are executed.
average() is not end when n>0 , have to maintain counter in the while loop,
Answer : FALSE
