Computer Science Canada having issues outputting a string in reverse |
Author: | Vitani [ Fri Oct 19, 2007 8:26 am ] |
Post subject: | having issues outputting a string in reverse |
For this program, I have to get a word from the user and output it in reverse, but I am having issues doing this. I checked the turing site, the help option, everything, and I can't get it to work. It keeps telling me something about bounds, but I couldn't find any information to help me. I am a serious n00b at Turing, can anyone please tell me what I did wrong? var word : string put "Enter your word" put "To exit, enter 'stop'" loop get word exit when word = "stop" put word (*..1) end loop |
Author: | Zampano [ Fri Oct 19, 2007 8:29 am ] |
Post subject: | Re: having issues outputting a string in reverse |
Your code seems to work perfectly for me, what version are you using? |
Author: | Vitani [ Wed Oct 24, 2007 8:10 am ] |
Post subject: | Re: having issues outputting a string in reverse |
Whatever my welfare school is using....ugh. But nevermind, I got it to work...I had to completely change it and add a variable and stupid stuff, but at least it runs. Sorry to post this lol |