Who'd have thought this in itself would get a Wikipedia Article? Hmm.. As far as I can remember, I know of a few ways to do this..
Easiest would be in Python or BASIC:
print "Hello World."
In C it would be something like:
main() {
printf("Hello World.");
}
In FORTRAN, it can either be:
write (*,*) 'Hello World.'
or
print ('a') 'Hello World.'
Oh well.. so much for a sanity test to make sure everything's working.. But when it comes right down to it, it's not such a bad chunk of code to learn. xD
No comments:
Post a Comment