Pascal (bahasa pemrograman): Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Membalikkan revisi 21124916 oleh 182.2.104.109 (bicara)
Tag: Pembatalan
k →‎Hello World: menambahkan informasi tentang contoh program mencetak hello world pada posisi tertentu.
Baris 50:
 
end.
</syntaxhighlight>Berikut contoh program mencetak hello world pada posisi tertentu<ref>{{Cite web|title=Program Hello Friend Pascal Pada Posisi Tertentu|url=https://www.panduancode.com/2021/12/program-hello-friend-pascal.html|website=Panduan Code|language=id|access-date=2022-05-26}}</ref>:<syntaxhighlight lang="pascal" line="1">
</syntaxhighlight>
program hello;
uses crt;
var k:string;
begin
clrscr;
k := 'hello friend !';
textcolor(red);
gotoxy(10,3); writeln(k);
textcolor(white);
gotoxy(97,3); writeln(k);
textcolor(green);
gotoxy(55,11); writeln(k);
textcolor(brown);
gotoxy(10,22); writeln(k);
textcolor(blue);
gotoxy(97,22); writeln(k);
end.
</syntaxhighlight>Keterangan:
 
Program mencetak hello world pada posisi tertentu tersebut akan menampilkan lima teks hello world di tempat yang berbeda-beda yaitu:
 
1.Mencetak teks hello world disamping kiri atas berwarna merah.
 
2.Mencetak teks hello world disamping kanan atas berwarna putih.
 
3.Mencetak teks hello world ditengah berwarna hijau.
 
4.Mencetak teks hello world disamping kiri bawah berwarna coklat.
 
5.Mencetak teks hello world disamping kanan bawah berwarna biru.
 
== Daftar Referensi ==
<references />
 
== Pranala luar ==