2011-05-16

Hello World!

The common first piece of program almost every programmers or developers learned was the "Hello World!" program. The job was to display the "Hello World!" string in the least possible coding ever, just to have an exposure to the programming syntax of the languages used.

I remembered back when I was in my college days, the first true programming language used for displaying "Hello World!" was Unix Pascal. I can't remember much on the syntaxes any longer because that was eons ago. Somehow there are some which I still keep fresh in my mind.

Visual Basic:
PRINT "Hello World!"

VB.NET:
Module HelloWorld
    Sub Main()
        System.Console.WriteLine("Hello World!")
    End Sub
End Module

C:
int main() {
    printf("Hello World!\n");
    return 0;
}

C#:
public class HelloWorld {
    Public static void Main() {
        System.Console.WriteLine("Hello World!");
    }
}

Java:
class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

I wished I could remember more and know more. But these are all I could manage right now.

Hope this journey is a fruitful one and I won't be too busy to update this blog with my software developments.

No comments:

Post a Comment