Carlos Roque Code Hints, Examples and more

14Sep/102

Hello World

Hello world
Well, I figure I would make this post interesting by posting all the hellos worlds that I can come up with on this Article
C#
public class myClass
{
 public static void Main()
 {
  System.Console.WriteLine("Hello world");
 }
}

PHP
<?php
 echo "Hello world";
?>

Javascript
<script type="text/javascript">
 document.write('Hello World');
</script>

Perl
print 'Hello world.';

C++
#include <iostream>
using namespace std;
void main()
{
 cout << "Hello World!" << endl;
}

VB
Module myModule
Sub Main()
MsgBox("Hello world")
End Sub
End Module

Comments (2) Trackbacks (0)
  1. Hey, your blog looks a lot better than mine but it needs some content! Surely you’ve done some cool stuff since you moved, right?


Leave a comment

(required)

 

No trackbacks yet.