17.07.2013 Views

GWBASIC User's Manual

GWBASIC User's Manual

GWBASIC User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GW-BASIC <strong>User's</strong> Guide<br />

08:00:05<br />

The following program displays the current date and time on the 25th line of the screen and will<br />

sound on the minute and half minute.<br />

10 KEY OFF: SCREEN 0: WIDTH 80: CLS<br />

20 LOCATE 25, 5<br />

30 PRINT DATE$, TIME$;<br />

40 SEC=VAL(MID$(TIME$, 7, 2))<br />

50 IF SEC=SSEC THEN 20 ELSE SSEC=SEC<br />

60 IF SEC=0 THEN 1010<br />

70 IF SEC=30 THEN 1020<br />

80 IF SEC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!