home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Avalon 2
/
Avalon_02_1995-06_Avalon_Side_B.d64
/
calendar
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
2KB
|
85 lines
0 rem *********************************
1 rem *** origin of program unknown ***
2 rem *********************************
5 poke53280,11:poke53281,12:poke646,0
10 rem program-calendar
20 print"[147]this program prints the calendar for"
25 print
30 print"any month in the twentieth century."
50 dimc(7,6)
60 restore
65 print""
70 input"name of month required";m$
75 print"
80 [133]"year required (4 digits)";y
85 [153]""
90 [153]"caculating-please wait...."
100 d$[178]"montuewenthufrisatsun"
110 [143] get number of days
120 m[178]0
130 [135]q$,f,d
140 m[178]m[170]1
150 [139]m[177]12[167][153]:[153]"invalid month!!":[137]60
160 [139][200](m$,3)[179][177][200](q$,3)[167]130
165 [139]y[179]1901[167][153]:[153]"invalid year!!":[137]60
170 y[178]y[171]1900
180 l[178][181](y[173]4)
190 of[178]y[170]l
200 [139]y[171][181](y[173]4)[172]4[178]0[175]m[179]3[167]of[178]of[171]1
210 [139]y[171][181](y[173]4)[172]4[178]0[175]m[178]2[167] d[178]29
220 of[178]of[171][181](of[173]7)[172]7
230 f[178]f[170]of
240 f[178]f[171][181](f[173]7)[172]7
250 [139]f[178]0[167]f[178]7
260 [129]i[178]1[164]f[171]1
270 c(i,1)[178]0
280 [130]i
290 dy[178]1
300 [129]i[178]f[164]7
310 c(i,1)[178]dy
320 dy[178]dy[170]1
330 [130]i
340 [129]j[178]2[164]6
350 [129]i[178]1[164]7
360 c(i,j)[178]dy
370 dy[178]dy[170]1
380 [139]dy[177]d[167]i[178]7:j[178]6:[137]390
390 [130]i
400 [130]j
410 [141]1000:[153]"on"
420 [153]"";m$;" ";y[170]1900;""
430 [129]i[178]1[164]7
440 [153]" ";[202](d$,(i[171]1)[172]3[170]1,3)
450 [130]i
460 [153]"";
470 [129]j[178]1[164]6
480 [129]i[178]1[164]7
485 c$[178][196](c(i,j))
486 [139][195](c$)[178]2[167]c$[178]" "[170]c$:[137]490
490 [139]c(i,j)[179][177]0[167][153]c$;"cmdcmdcmd";
495 [139]c(i,j)[178]0[167][153]" ";"cmdcmdcmd";
500 [130]i
510 [153]"ononononononon";
520 [130]j
521 [153]:[153]:[153]:[153]:[153]:[153]:[153]:[153]:[153]:[153]:[153]"another one? type y or n:"
522 [161]q$
523 [139]q$[178]""[167]522
524 [139]q$[179][177]"y"[175]q$[179][177]"n"[167]522
525 [139]q$[178]"y"[167][138]
526 [129]pause[178]0[164]500:[130]pause
527 [153]:[153]"goodbye":[141] 1000:[128]
540 [131]"january",1,31,"february",4,28,"march",4,31,"april",7,30,"may",2,31
550 [131]"june",5,30,"july",7,31,"august",3,31,"september",6,30,"october",1,31
560 [131]"november",4,30,"december",6,31,"",,
999 [143] fancy screen clearer by a gale
1000 [129]t[178]0 [164] 12
1010 [151] 781,t[172]2:[158] 59903
1020 [129] h[178]1 [164] 30:[130] h
1030 [130] t
1040 [129] t[178]0 [164] 11
1050 [151] 781,(t[172]2)[170]1:[158] 59903
1060 [129] h[178]1 [164] 30 :[130] h
1070 [130] t
1080 [153][199](147)
1090 [142]