turing: project help
Posted: Mon Nov 22, 2004 9:48 pm
according to posts i have read not many users know turing...but it's worth a try... so here's my code and i need help to scramble letters in the word and everytime i try to run it ain't workin'
Code: Select all
var word := "braveheart"
var nword : int
for scramword : 1 .. length (word)
if nword = 0 then
nword := word (1 .. scramword - 1) + word (scramword + 1 .. *) + word (scramword)
else
nword := word (2 .. *) + word
end if
put nword
end for[code]
[color=#888888][size=85]Archived topic from Iceteks, old topic ID:2863, old post ID:23386[/size][/color]