![]() |
![]() |
|
![]() |
![]() |
Encyclopedia :
T :
TU :
TUR :
Turbo BASIC |
|
|
Turbo BASIC
Code sampleINPUT "What is your name"; A$ PRINT "Hello "; A$ DO S$ = "" INPUT "How many stars do you want to print"; S FOR I = 1 TO S S$ = S$ + "*" NEXT I PRINT S$ DO INPUT "Do you want to print more stars"; Q$ LOOP WHILE LEN(Q$) = 0 Q$ = LEFT$(Q$, 1) LOOP WHILE (Q$ = "Y") OR (Q$ = "y") PRINT "Goodbye "; A$
|
|
|
This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License. |
|
| © 2008 Chamas Enterprises Inc. |