GW-Basic coding question...
Hi..
I know GW basic is quite antiquated, but my nephew is trying to learn it, so I decided to check it out myself.
For now, we are stuck on page 1:D I need to know how to write a program what will give the following output..
12345
1234
123
12
1
I know its simple, but some help would be well appreciated.
Regards
Re: GW-Basic coding question...
Ahh, good old GWBASIC. Wrote many happy lines with that thing years ago. Here you go, this should work.
Quote:
10 FOR I=5 TO 1 STEP -1
20 PRINT LEFT$("12345", I)
30 NEXT I
-Max :D