Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Your best "Hello, world!" program in FreeBasic
#14
Compiles for FB, QB and ANSI C:
Code:
REM; /*
print "Hello World"
'*/ int main(void) {printf("Hello World\n"); return 0;}

Edit: Slightly more clever version:
Code:
REM = '\t'; char *PRINT = "\n"; /*
DIM s AS STRING * 13
'*/ int main() { char *s[3] = {
PRINT , "Hello world",
REM}; printf("%c%s%s", s[2], s[1], s[0]);}
esus saves.... Passes to Moses, shoots, he scores!
Reply


Messages In This Thread
Your best "Hello, world!" program in FreeBasic - by LooseCaboose - 01-30-2006, 11:54 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)