Dear ALL,
Please help me to solve the problem in Algorithms.
Consider the following sequence of steps:
1. count:=0
2. answer:=5
3. while count <=9 do
3.1 count:=count+2
3.2 answer:=answer+count
4. output
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? Give a reason for the answer.
Could you tell me how to do it??
Cheers,