Hello world: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Borgx (bicara | kontrib)
k <source></source>
BB~idwiki (bicara | kontrib)
←Mengosongkan halaman
Baris 1:
'''Hello world''' (Halo dunia) adalah nama jenis program [[komputer]] yang diambil pertama kalinya pada kursus [[pemrograman]].
 
Program ini sangat sederhana dengan menunjukkan teks "Halo dunia" di layar. Contoh awal ini dipakai untuk menulis program-program yang lebih canggih.
 
Hello world! pertama kalinya dipakai oleh para pemrogram bahasa [[bahasa_C|C]] untuk menunjukkan kemampuan bahasa ini.
 
== Hello world dalam beberapa bahasa pemrograman ==
 
=== [[bahasa Basic|Basic]] ===
<source lang="qbasic">
10 PRINT "Halo dunia"
</source>
 
=== [[File Batch]] ===
@echo off
echo Halo dunia
 
=== [[bahasa C|C]] ===
<source lang="c">
#include <stdio.h>
&nbsp;
int main()
{
printf("Halo dunia\n");
return 0;
}
</source>
 
=== C++ ===
<source lang="cpp">
#include <iostream.h>
int main()
{
cout << "Halo dunia";
return (0);
}
</source>
 
=== [[bahasa C#|C#]] ===
<source lang="csharp">
class HaloDunia
{
static void main( )
{
System.Console.WriteLine("Halo Dunia");
}
}
</source>
 
=== [[Bahasa Clipper|Clipper]] ===
qout("Halo dunia")
 
=== [[Java]] ===
<source lang="java">
public class HaloDunia {
public static void main(String args[]) {
System.out.println("Halo dunia\n");
}
}
</source>
 
=== [[lisp]] ===
<source lang="lisp">
(print "Halo dunia")
</source>
 
=== [[Pascal]] ===
<source lang="pascal">
program helloworld;
begin {
writeln('halo dunia');
}
end.
</source>
 
=== [[Perl]] ===
<source lang="perl">
print "Halo dunia\n";
</source>
 
=== [[PHP]] ===
<source lang="php">
<pre>
<?php
echo "Halo dunia";
?>
</pre>
</source>
 
=== [[PLSQL|PL/SQL Oracle]] ===
<source lang="oracle8">
create or replace procedure HelloWorld is
begin
dbms_out.put_line('HALO DUNIA');
end;
</source>
 
=== [[Bahasa Prolog|Prolog]] ===
write('Halo dunia'),nl.
 
=== [[Python (bahasa pemrograman)|Python]] ===
<source lang="python">
print 'Halo dunia\n'
</source>
 
=== [[Bahasa RPG|RPG]] ===
I 'Halo dunia' C HELLO
C DSPLY HELLO
 
=== [[Seed7]] ===
$ include "seed7_05.s7i";
const proc: main is func
begin
writeln("Halo dunia");
end func;
 
=== [[Bahasa T-SQL|Microsoft T-SQL]] ===
<source lang="tsql">
create proc HelloWorld as
begin
print 'HALO DUNIA'
end
</source>
 
== Hello world dalam beberapa bahasa shell ==
=== [[Bash]] ===
<source lang="bash">
printf "Halo dunia"
</source>
 
=== [[Sh]] ===
echo 'Halo dunia'
 
== Hello world dalam beberapa bahasa <i>mark up</i> ==
 
=== [[HTML]] ===
<source lang="html4strict">
<pre>
<html>
<head>
<title>
Halaman pertama saya
</title>
</head>
<body>
Halo dunia
</body>
</html>
</pre>
</source>
 
=== [[LaTeX]] ===
<source lang="latex">
\documentclass{article}
\begin{document}
Halo dunia
\end{document}
</source>
 
=== [[Lisp]] ===
<source lang="lisp">
(princ "Halo dunia\n")
(prin1)
</source>
 
=== [[XML]] ===
<source lang="xml">
<?xml version="1.0"?>
<tekst>Halo dunia</tekst>
</source>
 
== Pranala luar ==
:*[http://www.roesler-ac.de/wolfram/hello.htm Hello world! dalam 141 bahasa program]
 
{{wikisource|Hello world}}
 
[[Kategori:Pemrograman komputer]]
[[Kategori:Frasa]]
 
[[az:Bir çox dillərdə "Hello World"]]
[[bg:Hello, world]]
[[ca:Hola món]]
[[cs:Hello world]]
[[da:Hello world-program]]
[[de:Hallo-Welt-Programm]]
[[en:Hello world program]]
[[es:Hola mundo]]
[[et:Hello world]]
[[eu:Kaixo mundua]]
[[fr:Hello world]]
[[he:תוכנית Hello world]]
[[hu:Helló, Világ!-program]]
[[ia:Hello World]]
[[it:Hello world]]
[[ja:Hello world]]
[[ko:Hello world 프로그램]]
[[nl:Hello world]]
[[nn:Hello World]]
[[no:Hello, world]]
[[pl:Hello world]]
[[pt:Programa Olá Mundo]]
[[ro:Program Hello, world!]]
[[ru:Программа Hello world]]
[[simple:Hello world program]]
[[sk:Hello world]]
[[sl:PozdravljenSvet]]
[[sv:Hello, World!]]
[[th:Hello world]]
[[vi:Chào thế giới!]]
[[zh:Hello World]]