Fizz Buzz in Commodore Basic

Published on 13 September 2023 (Updated: 13 September 2023)

Welcome to the Fizz Buzz in Commodore Basic page! Here, you'll find the source code for this program as well as a description of how the program works.

Current Solution

10 FOR I = 1 TO 100
20     S$ = ""
30     IF (I - INT(I / 3) * 3) = 0 THEN S$ = S$ + "Fizz"
40     IF (I - INT(I / 5) * 5) = 0 THEN S$ = S$ + "Buzz"
45     REM STR$(I) prepends a space for positive numbers. MID$ removes it
50     IF S$ = "" THEN S$ = S$ + MID$(STR$(I), 2)
60     PRINT S$
70 NEXT I

Fizz Buzz in Commodore Basic was written by:

If you see anything you'd like to change or update, please consider contributing.

How to Implement the Solution

No 'How to Implement the Solution' section available. Please consider contributing.

How to Run the Solution

No 'How to Run the Solution' section available. Please consider contributing.