home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er Special 63
/
64er_Magazin_Sonderheft_63_19xx_Markt__Technik_de_Side_A.d64
/
balkenstatistik
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
1KB
|
47 lines
100 d$="0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5"
110 :i$=str$(i):i$=right$(" "+i$,4)
120 poke53280,0:poke53281,0:print"[147][158]"
130 dimwe(101),a$(101):f=0
140 print"[153]***************************************"
160 print"** balkenstatistik **"
220 print"***************************************"
230 input"[158]einteilung x bis 100 ";ei
240 ifei=0thenprint"[145][145][145][145]":goto230
250 input"anzahl der balken bis 35 ";az
260 input"[158]ausdruck j/n ";au$
270 ifau$<>"j"andei>20thenprint"[153]nicht moeglich[145][145][145][145][145][145]":goto 230
280 ifau$<>"j"andaz>17thenprint"[153]nicht moeglich [145][145][145][145][145][145]":goto230
290 ifaz>35thenprint"[153]nicht moeglich [145][145][145][145][145][145]":goto230
300 ifei>100thenprint"[153]nicht moeglich [145][145][145][145][145][145]":goto230
310 input"[158]text max 40 zeichen";te$
320 input"[158]eingaben richtig j/n ";t$
330 ift$="n"thenprint"[145][145][145][145][145][145][145][145]":goto230
340 print"[147]":fori=1toaz
350 print"wert "i;:inputwe(i)
360 next
370 print"bitte warten, ich rechne[155]"
380 x=ei+1
390 fori=1toaz
400 ifwe(i)>x-1thena$(x)=a$(x)+"[158] [146][155][192]":goto420
410 a$(x)=a$(x)+"[219][192]"
420 next: x=x-1
430 ifx=0then450
440 goto390
450 ifau$="j"thenopen1,4:cmd1
460 print"[147] "te$:i=ei:print
470 :i$=str$(i):i$=right$(" "+i$,4)
480 iff=0thenprintchr$(15)"[154]"i$"[219][155][192]"a$(i)chr$(8):f=1:goto500
490 iff=1thenprintchr$(15)" [154][219][155][192]"a$(i)chr$(8):f=0
500 i=i-1
510 ifi=0then530
520 goto470
530 printchr$(15)"[154]" ;
540 printch$" 0[219]";:ford=1toaz:print"[192][219]";:next:print"[192]"
550 print" "left$(d$,az*2+2)
560 close 1
570 geta$:ifa$=""then570
580 ifa$="n"thenrun
590 ifa$="d"thenau$="j":goto450
600 ifa$="e"thenend
610 goto570