Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Your best "Hello, world!" program in FreeBasic
#45
This doesn't work on my XP, but I think it would work in 95/98.
Code:
DIM AS STRING HelloWorld, WantedString
WantedString="Hello, World!"
DO UNTIL HelloWorld="Hello, World!"
    IF PEEK(A)=ASC(WantedString[S]) THEN
        HelloWorld[S]=CHR$(PEEK(A))
        S=S+1
    END IF
    A+=1
LOOP
PRINT HelloWorld
END
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply


Messages In This Thread
Your best "Hello, world!" program in FreeBasic - by Zack - 02-09-2006, 08:11 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)