Hello world

Dari Wikisource Indonesia, perpustakaan bebas berbahasa Indonesia

Langsung ke: navigasi, cari
Kode sumber program    


Daftar isi

[sunting] ANSI C

#include <stdio.h>

int main()
{
    printf("Hello, World!\n");
    return 0;
}

[sunting] ASP

response.write "Hello, World!"

[sunting] Assembler

    .model tiny

    .data
message    db    'Hello, World!'
    
    .code
    org 100h

start:
    mov ah,9
    mov dx,offset message
    int 21h

    ret
    end start

[sunting] Java

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

[sunting] Pascal

program HelloWorld;

begin
   writeln('Hello world!');
end.

[sunting] BASIC

PRINT "Hello, world!"

[sunting] PHP

<?php
    echo 'Hello, world!';
?>

[sunting] Python

print("Hello, World!")

[sunting] Perl

#!/usr/bin/perl
print ("Hello, world!\n");
Peralatan pribadi
Buat buku
Bahasa lain