Hello World!

Hello World!

10. 7. 2013

Nemozem zacat lepsie ako niekolkymi ukazkami kodu Hello World! :)


Basic

PRINT "Hello World!"

C++

#include <iostream>

using namespace std;

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

C#

using System;

class Program
{
    public static void Main()
    {
        Console.WriteLine("Hello World!");
    }
}

Dart

main()
{
    print('Hello World!');
}

HTML

<!DOCTYPE html>
<html>
    <body>
        Hello World!
    </body>
</html>

Java

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

JavaScript

document.write('Hello World!');

jQuery

$('body').html('Hello World!');

Pascal

begin
    WriteLn('Hello World!');
end.

Perl

print "Hello World!";

PHP

echo 'Hello World!';
comments powered by Disqus