Simple While Loop
Simple While Loop
(OP)
I have been beating my head against a wall on something so simple. Will someone put me out of my misery please
Attached is the simple sheet. Please tell me where I am going so wrong.
Attached is the simple sheet. Please tell me where I am going so wrong.





RE: Simple While Loop
RE: Simple While Loop
SS: |h <-- 1
|b <-- 1
|Sa < -- b + h
| while Sa ≤ 10
| h <-- h + 1
|return h
the program says basically i have an infinite loop. dont get it
I have done it without the return statement as well and get the same answer. I should get ss = 9
any ideas?
RE: Simple While Loop
RE: Simple While Loop
SS: |h <-- 1
|b <-- 1
| while Sa ≤ 10
|Sa < -- b + h
|h <-- h + 1
|return h
ss = 11
should be 9
RE: Simple While Loop
SS: |h <-- 1
|b <-- 1
| while Sa < 10
|Sa < -- b + h
|h <-- h + 1
|return h
ss = 10
still should be 9
RE: Simple While Loop
RE: Simple While Loop
ht
htt
RE: Simple While Loop
RE: Simple While Loop
RE: Simple While Loop
RE: Simple While Loop
I get 317.857 mm with a solve block. :
htt
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
Chinese prisoner wins Nobel Peace Prize
RE: Simple While Loop