タイトルの通り。
1から数字を数えて、3の倍数と3が付く数字の時だけアホになります。
世界のナベアツさんのネタです。
動画
実行結果
3がつく数字で @を 表示します
BASICプログラム
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 'save "nabe.bas" 'for MSX2 | |
20 SCREEN1:CLS | |
30 FOR I=1 TO 40 | |
40 A = I MOD 3 | |
50 C$ = STR$(I) | |
60 B = INSTR(C$,"3") | |
70 SET BEEP 1,4 | |
80 IF A = 0 THEN SET BEEP 4,4:PRINT "*"; | |
90 IF B <> 0 THEN SET BEEP 4,4:PRINT "@"; | |
100 PRINT I:BEEP | |
110 FOR J=0 TO 250:NEXT J | |
120 NEXT I | |
130 PRINT "omoro-!!!":PLAY "t200o4l8cego5c4" |