ChipMaster's bwBASIC
This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- 5 REM find greatest common divisor (Euclidean Algorithm)
- 10 CALL SHELL("cls")
- 20 LET A = 1071
- : LET B = 462
- 30 IF A < B THEN
- : C = A
- : A=B
- : B=C
- : END IF
- 40 PRINT A,B
- 50 LET C = A - INT(A/B)*B
- : REM C = A MOD B (A modulo B)
- 60 LET A = B
- : B = C
- 70 IF B > 0 GOTO 40
- 80 PRINT "GCG is ";A
- 90 END
|