
-----------------------------------
blankout
Wed Mar 04, 2009 6:16 pm

Repeat a statement
-----------------------------------
can someone tell me how to repeat a statement without looping for example if i say


var amount : real
const tax := 1.13
var total : real
put "I will calculate tax for you"
delay (1500)
cls
put "How much did the item cost?"
get amount
cls
put "If my math is correct then the total cost should be:"
total:=amount*tax
put "$", total:1:2



could you possibly repeat the same process without exiting and restarting?

-----------------------------------
BigBear
Wed Mar 04, 2009 6:33 pm

RE:Repeat a statement
-----------------------------------
What about puuting loop
put "I will calculate tax for you"
delay (1500)
cls
put "How much did the item cost?"
get amount
cls
put "If my math is correct then the total cost should be:"
total:=amount*tax
put "$", total:1:2


-----------------------------------
Tony
Wed Mar 04, 2009 6:35 pm

RE:Repeat a statement
-----------------------------------
use a [tdoc]procedure[/tdoc]
