# Math Help - The problem in Algorithms

1. ## The problem in Algorithms

Consider the following sequence of steps:

1. count:=0
3. while count<=9 do
3.1 count:=count+2

b. Construct a trace table to show the value of all variables.
c. What is the value of answer after 3 iterations of the for-do loop?
d. Is the sequence of steps an algorithm? Giv a reason for your answer.

Cheers,

2. Originally Posted by turboman

Consider the following sequence of steps:

1. count:=0
3. while count<=9 do
3.1 count:=count+2

b. Construct a trace table to show the value of all variables.
c. What is the value of answer after 3 iterations of the for-do loop?
d. Is the sequence of steps an algorithm? Giv a reason for your answer.