You are browsing as a guest. Sign up (or log in) to start making projects!

40m 34s logged

I implemented the skipping FOR loops if they are invalid. ex for i = 0 to 10 step -1
I also created a few test programs and ran then to see if they worked (they did)

Here is my pythagarian triangle finder:

10 FOR A = 1 TO 50 STEP 1
20 FOR B = 1 TO 50 STEP 1
30 LET C2 = A*A + B*B
40 LET C = SQR(C2)
50 IF INT(C)=C THEN 70
60 GOTO 80
70 GOSUB 500
80 NEXT B
90 NEXT A
100 STOP

500 PRINT "PYTHAGARIAN TRIANGLE FOUND";A;B;C
510 RETURN

1000 STOP

I’m highkey a lazy bum and dont want to implement DEF and DIM for my own sanity’s sake, and making better debug screens? goodness no! I’ll be making an interface to type in basic programs now

0
2

Comments 0

No comments yet. Be the first!