Hello World! in different languages.


In Java:  

class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}
----------------
In PHP   

<?PHP
echo "Hello World!";
?>  

----------------
In C:

#include <stdio.h>  

main(){
    printf ("Hello World!n");
}  

----------------
In C++:  

#include <iostream.h>  

main(){
    cout << "Hello World! ";
}  

----------------

In Pascal:  

Program Hello (Input, Output);  

Begin
  Writeln ('Hello World!');
End.  

----------------

In Ada:
with Text_Io; use Text_Io;  

procedure hello is
begin
    put ("Hello world!");
end hello;

There is a project out there that is trying to put up examples for different languages.

One thought on “Hello World! in different languages.


Leave a Reply

Your email address will not be published.