Hello World
Hi,
This will be the first post in here, and as should be, the first learned piece of code…
1 2 3 |
trace ("Hello, world!"); |
1 2 3 |
echo "Hello world" |
1 2 3 4 5 6 7 8 |
#include <stdio.h> int main() { printf("Hello, world!\n"); } |
1 2 3 4 5 6 7 8 |
#include <iostream> int main() { std::cout << "Hello, world!\n"; } |
1 2 3 4 5 6 7 8 9 10 |
using System; class Program { public static void Main(string[] args) { Console.WriteLine("Hello, world!"); } } |
1 2 3 |
alert 'Hello, world!' |
1 2 3 4 5 6 7 8 9 |
<!DOCTYPE html> <html> <head></head> <body> <p>Hello, world!</p> </body> </html> |
1 2 3 4 5 6 7 |
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, world!"); } } |
1 2 3 |
console.log('Hello, world!'); |
1 2 3 |
(princ "Hello, world!") |
1 2 3 |
disp('Hello, world!') |
1 2 3 4 5 6 7 8 9 10 |
#import <stdio.h> #import <Foundation/Foundation.h> int main(void) { NSLog(@"Hello, world!\n"); return 0; } |
1 2 3 |
print "Hello, world!\n"; |
1 2 3 |
<?php echo 'Hello, world!'; ?> |
1 2 3 |
print("Hello, world!") |
1 2 3 |
cat('Hello, world!\n') |
1 2 3 |
puts "Hello, world!" |
1 2 3 4 5 |
object HelloWorld extends App { println("Hello, world!") } |
1 2 3 |
SELECT 'Hello, world!' |
1 2 3 |
println("Hello, world!") |
1 2 3 |
MsgBox "Hello, world!" |
1 2 3 4 5 6 7 |
Module Module1 Sub Main() Console.WriteLine("Hello, world!") End Sub End Module |
Source: http://en.wikipedia.org/wiki/List_of_Hello_world_program_examples