Computer Science Canada

Repeat a statement

Author:  blankout [ Wed Mar 04, 2009 6:16 pm ]
Post subject:  Repeat a statement

can someone tell me how to repeat a statement without looping for example if i say

Turing:

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?

Author:  BigBear [ Wed Mar 04, 2009 6:33 pm ]
Post subject:  RE:Repeat a statement

What about puuting
Turing:
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

Author:  Tony [ Wed Mar 04, 2009 6:35 pm ]
Post subject:  RE:Repeat a statement

use a procedure


: