Skip to content

Instantly share code, notes, and snippets.

View ilhamarrouf's full-sized avatar
🏠
Working from home

Ilham Arrouf ilhamarrouf

🏠
Working from home
View GitHub Profile
@ilhamarrouf
ilhamarrouf / sintaks-while.sh
Created December 5, 2016 23:35
Sintaks Struktur Kontrol
while (kondisi) {
statement;
statement;
}
@ilhamarrouf
ilhamarrouf / sintaks-for.sh
Created December 5, 2016 23:36
Sintaks Struktur Kontrol
for {start; condition; increment) {
statement;
}
@ilhamarrouf
ilhamarrouf / sintaks-ifelseif.sh
Created December 5, 2016 23:37
Sintaks Struktur Kontrol
if (kondisi) {
statement;
} elseif (kondisi2) {
statement2;
} elseif (kondisi3) {
statement3;
} else {
statement4;
}
@ilhamarrouf
ilhamarrouf / sintaks-if.sh
Created December 5, 2016 23:38
Sintaks Struktur Kontrol
if (kondisi) {
statement;
} else {
statement;
}
@ilhamarrouf
ilhamarrouf / for.php
Created December 5, 2016 23:39
Struktur Kontrol PHP
<?php
for ($i = 1; $i <= 10; $i++) {
echo $i . "\n";
}
@ilhamarrouf
ilhamarrouf / while.php
Created December 5, 2016 23:40
Struktur Kontrol PHP
<?php
$parameter = true;
while ($parameter) {
echo "hello \n";
}
@ilhamarrouf
ilhamarrouf / ifelseif.php
Created December 5, 2016 23:41
Struktur Kontrol PHP
<?php
$nilai = 90;
if ($nilai > 60) {
echo 'nilai cukup';
} elseif ($nilai >70) {
echo 'niilai baik';
} elseif ($nilai > 90) {
echo 'nilai sangat baik';
} else {
echo 'nilai kurang';
@ilhamarrouf
ilhamarrouf / if.php
Created December 5, 2016 23:42
Struktur Kontrol PHP
<?php
$nilai = 70;
if ($nilai > 60) {
echo 'lulus';
} else {
echo 'mengulang';
}
@ilhamarrouf
ilhamarrouf / php-tags.php
Last active December 6, 2016 02:17
Basic Syntax PHP
<?php
// Letak kode pemrograman PHP untuk menjalankan perintah-perintah
?>
@ilhamarrouf
ilhamarrouf / escaping-from-html.php
Last active December 6, 2016 02:17
Basic Syntax PHP
<!DOCTYPE html>
<html>
<body>
<h1>PHP di HTML</h1>
<?php
echo "Hello World! <br> Lorem Ipsum";
?>