home *** CD-ROM | disk | FTP | other *** search
- '* ------------------------------------------------------- *
- '* TBSIDEMO.BAS *
- '* Demoprogramm zur Bibliothek TBSIMUL.BAS *
- '* (c) 1991 Kay Glahn & TOOLBOX *
- '* ------------------------------------------------------- *
- CLS
- PRINT "Die Funktionen BIN$ und UNBIN :"
- PRINT "Geben Sie eine Dezimalzahl ein : ";
- INPUT "", Zahl
- BinZahl$ = BIN$(Zahl)
- PRINT "Die Dezimalzahl"; UNBIN(BinZahl$);
- PRINT "lautet in Binärschreibweise ";
- PRINT BinZahl$; " !"
- WHILE INKEY$ = "": WEND
- CLS
- PRINT "Mathematische Funktionen:"
- PRINT "Geben Sie eine Zahl (1 bis 38) ein : ";
- INPUT "", Zahl
- PRINT "LOG2() von "; Zahl; " ist "; LOG2(Zahl); "."
- PRINT "LOG10() von "; Zahl; " ist "; LOG10(Zahl); "."
- PRINT "EXP2() von "; Zahl; " ist "; EXP2(Zahl); "."
- PRINT "EXP10() von "; Zahl; " ist "; EXP10(Zahl); "."
- PRINT "CEIL() von "; Zahl; " ist "; CEIL(Zahl); "."
- WHILE INKEY$ = "": WEND
- CLS
- PRINT "Verwendung von INSTAT, INCR und DECR :"
- A = 10000
- B = 0
- WHILE NOT INSTAT
- LOCATE 2, 1
- PRINT A; " : "; B
- DECR A, 1
- INCR B, 1
- WEND
- PRINT "Sie haben die Taste "; CHR$(34); INKEY$;
- PRINT CHR$(34); " gedrückt !"
- WHILE INKEY$ = "": WEND
- END
- '* ------------------------------------------------------- *
- '* Ende von TBSIDEMO.BAS *