So what happened to the twos*s then
you Need to state your objectives more effectively
So what happened to the twos*s then
you Need to state your objectives more effectively
Warning I'm not a teacher
So if output is 11, then it will be 3+3+3+2
8=3+3+2
9=3+3+3
10+3+3+3+1
11=3+3+3+2
12=3+3+3+3
But these are sub-routines, which already include other statement, s so 3 here is actually doing 1+2+3, 2 is doing 1+2, and 1 is doing just 1![]()
MY code that produced the printout in #4 called digit 1 ,2 and 3 subs [c1 c2 c3 ]as needed when the input is broken down
![]()
Warning I'm not a teacher
Thanks, but there's no code in #4?
you can remove all the gosubs entirely with a bit of thought to get the same printout
Code:LOOPY: FOR X = 1 TO 30 DEBUG 13,10,DEC X,9 GOSUB CX NEXT PAUSE 5000 GOTO LOOPY CX: XX = x y = 0 WHILE XX DEBUG 49 + y y = y + 1 if y == 3 then y = 0 Xx = Xx - 1 IF XX THEN DEBUG "," WEND RETURN
Warning I'm not a teacher
Bookmarks