Sorry for reposting, but these are some new questions that spin off my old post.

Okay can anyone explain while loops to me in a non-computer like way or as non-computer like as it can get. I understand the logic of while loops, but whenever I put it to practice I get all sorts of confused.

I really just need someone to clarify this whole concept for me. My teacher taught us using charts and I get confused which column of the chart holds my answer. Basically I do not know which number I want. I think I am just confusing my self more writing this entry.

Here is an example where I just can't grasp the whole idea:

Problem:

For which values of the integer b do each of the following algorithms terminate?

a)begin

k:=b

whilek<5do

k:=2k-1

end

I keep getting the answer b>(or equal to)3, but the book's answer is b>(or equal to)2.

and then

c)begin

k:=b

whilek<5do

k:=2k+1

end

Now I get the answer b>(or equal to) 2, and the book's answer is something like b E(as in the element/set E) natural numbers.

So you see I am not getting this.