Wednesday, September 2, 2009

Hello World

Koleksi Hello World yg pernah aku buat bedasarkan language yg pernah aku pakai & gunakan.. Kepada mereka2 yg begelar programmer.. pasti mengenali benar perkataan Hello World ini..

Perl:

print "Hello World!\n";

PHP:

< ?php
  echo 'Hello World!';
?>

JavaScript:



<script language="JavaScript" type="text/javascript">
// Hello World in JavaScript
document.write('Hello World');
</script>
</body>
</html>

VBScript:

msgbox "Hello, World!"

XML:




Hello, World

WML:

#define HELLOWORLD
  [message]
    speaker="narrator"
    message=_"Hello World"
  [/message]
#enddef

C++:

#include 

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

HTML:

<HTML>

<HEAD>
<TITLE>Hello World!</TITLE>
</HEAD>
<BODY>
Hello World!
</BODY>
</HTML>

MSDOS:

@ECHO OFF
REM Hello World for DOS batch

ECHO Hello World!

Python 3000:

# Hello World in Python 3000
print("hello World")

Python:

# Hello World in Python
print "Hello World"

Ruby:

# Hello World in Ruby
puts "Hello World!"

No comments: