Image:GW-BASIC 3.22.png

From Wikipedia, the free encyclopedia

No higher resolution available.

GW-BASIC_3.22.png (721 × 401 pixel, file size: 2 KB, MIME type: image/png)

INPUT "What is your name"; UserName$ PRINT "Hello "; UserName$ DO

  INPUT "How many stars do you want"; NumStars
  Stars$ = ""
  Stars$ = REPEAT$("*", NumStars)   ' <- ANSI BASIC
  --or--
  Stars$ = STRING$(NumStars, "*")   ' <- MS   BASIC
  PRINT Stars$
  DO
     INPUT "Do you want more stars";  Answer$
  LOOP UNTIL Answer$ <> ""
  Answer$ = LEFT$(Answer$, 1)

LOOP WHILE UCASE$(Answer$) = "Y" PRINT "Goodbye "; FOR I = 1 TO 200

  PRINT UserName$; " ";

NEXT I PRINT

File history

Legend: (cur) = this is the current file, (del) = delete this old version, (rev) = revert to this old version.
Click on date to download the file or see the image uploaded on that date.


The following pages on the English Wikipedia link to this file (pages on other projects are not listed):