Repeat a statement
Author |
Message |
blankout
|
Posted: 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? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
BigBear
|
Posted: 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
|
|
|
|
|
|
|
Tony
|
|
|
|
|
|
|