Top Qs
Timeline
Obrolan
Perspektif
Hello world
program komputer Dari Wikipedia, ensiklopedia bebas
Remove ads
Remove ads
Hello world (Halo dunia) umumnya adalah program komputer yang mengeluarkan atau menampilkan pesan "Hello, World!". Program semacam itu sangat sederhana di sebagian besar bahasa pemrograman, dan sering digunakan untuk menggambarkan sintaks dasar bahasa pemrograman. Ini sering kali merupakan program pertama yang ditulis oleh orang-orang yang belajar kode.[1][2] Ini juga dapat digunakan sebagai tes kewarasan untuk memastikan bahwa bahasa komputer diinstal dengan benar, dan bahwa operator memahami cara menggunakannya.
![]() | Artikel ini perlu dikembangkan dari artikel terkait di Wikipedia bahasa Inggris. (Februari 2025)
klik [tampil] untuk melihat petunjuk sebelum menerjemahkan.
|

Remove ads
Hello world dalam beberapa bahasa pemrograman
Basic
10 PRINT "Hello world"
File Batch
@echo off echo Hello world
C
#include <stdio.h>
int main()
{
printf("Hello world\n");
return 0;
}
C++
#include <iostream>
int main()
{
std::cout << "Hello world";
return 0;
}
C#
class HaloDunia
{
static void main( )
{
System.Console.WriteLine("Halo Dunia");
}
}
Delphi
program HaloDunia;
{$APPTYPE CONSOLE}
uses
SysUtils;
begin
writeln('Halo Dunia');
end.
Clipper
?"Hello world"
Java
public class HaloDunia {
public static void main(String args[]) {
System.out.println("Halo Dunia\n");
}
Javascript
console.log("Hello World");
lisp
(print "Hello world")
Pascal
program helloworld;
begin {
writeln('halo dunia');
}
end.
Perl
print "Hello world\n";
PHP
<?php
echo "Hello world";
?>
PL/SQL Oracle
create or replace procedure HelloWorld is
begin
dbms_out.put_line('HALO DUNIA');
end;
Prolog
write('Hello world'),nl.
Python
print("Hello World")
RPG
I 'Hello world' C HELLO C DSPLY HELLO
Seed7
$ include "seed7_05.s7i"; const proc: main is func begin writeln("Hello world"); end func;
Microsoft T-SQL
create proc HelloWorld as
begin
print 'HALO DUNIA'
end
Remove ads
Hello world dalam beberapa bahasa shell
Bash
printf "Hello world"
Sh
echo 'Hello world'
Hello world dalam beberapa bahasa mark up
HTML
<pre>
<html>
<head>
<title>
Halo Dunia
</title>
</head>
<body>
Hello world
</body>
</html>
</pre>
LaTeX
\documentclass{article}
\begin{document}
Hello world
\end{document}
Lisp
(princ "Hello world\n")
(prin1)
XML
<?xml version="1.0"?>
<text>Hello world</text>
Referensi
Pranala luar
Wikiwand - on
Seamless Wikipedia browsing. On steroids.
Remove ads