Skip to content

Instantly share code, notes, and snippets.

@Porta
Created April 1, 2011 18:25
Show Gist options
  • Save Porta/898604 to your computer and use it in GitHub Desktop.
Save Porta/898604 to your computer and use it in GitHub Desktop.
// Hello World in Java
class HelloWorld {
static public void main( String args[] ) {
System.out.println( "Hello World!" );
}
}
#############################################################################################
//Hello World in C#
class HelloWorld
{
static void Main()
{
System.Console.WriteLine("Hello, World!");
}
}
#############################################################################################
// Hello World in C++ (pre-ISO)
#include <iostream.h>
main()
{
cout << "Hello World!" << endl;
return 0;
}
#############################################################################################
# Hello World in Ruby
puts "Hello World!"
#############################################################################################
<?php
// Hello World in PHP
echo 'Hello World!';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment