Need help with turing
Posted: Wed Feb 15, 2006 1:25 pm
Alright so i have this assigment to make a program in turing that counts down from 100 by 7's and i have treid various things and cant seem to get it to work
*i know i need to subtract and i know i need to use the loop*
_________________________________________________
% Justin TIK2
% Feb 15, 2006
% count down by 7's
var c1, c2, b : real
c2 := 100 - 7
loop
c1 := c2 - 7 -7
put c1
exit when c1 = 5
end loop
___________________________________________________
that is what i have i know that it is not even close to working
Archived topic from Iceteks, old topic ID:4175, old post ID:34002
*i know i need to subtract and i know i need to use the loop*
_________________________________________________
% Justin TIK2
% Feb 15, 2006
% count down by 7's
var c1, c2, b : real
c2 := 100 - 7
loop
c1 := c2 - 7 -7
put c1
exit when c1 = 5
end loop
___________________________________________________
that is what i have i know that it is not even close to working
Archived topic from Iceteks, old topic ID:4175, old post ID:34002