
-----------------------------------
thomasb
Mon Jan 24, 2011 3:40 pm

How do you..
-----------------------------------
Use a sentinel value of "-1" to exit.

-----------------------------------
ProgrammingFun
Mon Jan 24, 2011 4:16 pm

RE:How do you..
-----------------------------------
You do not need to create new threads...

if input == -1
exit without doing anything else

else

do everything else

that is the pseudocode....

-----------------------------------
thomasb
Mon Jan 24, 2011 4:49 pm

Re: RE:How do you..
-----------------------------------
You do not need to create new threads...

if input == -1
exit without doing anything else

else

do everything else

that is the pseudocode....
How would i put this in my program:


put "Welcome to converter"
var cent : int
put "Please enter the length in centimetres"
get cent
put "the length in inches is " ..
put cent * 2.54

-----------------------------------
Tony
Mon Jan 24, 2011 4:52 pm

RE:How do you..
-----------------------------------
Presumably the "do everything else" part will be your existing program.

-----------------------------------
ProgrammingFun
Mon Jan 24, 2011 5:05 pm

Re: RE:How do you..
-----------------------------------
How would i put this in my program:


put "Welcome to converter"
var cent : int
put "Please enter the length in centimetres"
get cent
put "the length in inches is " ..
put cent * 2.54

Just as Tony said:


Welcome

loop
   Plz input length
      get length

   if length 