{ Judul }
Membandingkan_dua_nilai
{ Kamus }
a, b: Integer
keterangan: String
{ Algoritma }
Input(a, b);
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program kasus_1; | |
var | |
angka: int; | |
keterangan: string; | |
begin | |
write('Masukkan angka: '); | |
readln(angka); | |
{ Judul }
Menentukan_indeks_nilai
{ Kamus }
nilai: Real
indeks: Char
{ Algoritma }
Input(nilai);
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program kasus_1; | |
var | |
a, b: int; | |
keterangan: string; | |
begin | |
write('Masukkan angka ke-1: '); | |
readln(a); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program kasus_2; | |
var | |
nilai: real; | |
indeks: char; | |
begin | |
write('Masukkan nilai: '); | |
readln(nilai); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program for_loops; | |
var | |
i: integer; | |
begin | |
for i := 0 to 10 do | |
writeln('Hello world!'); | |
end. |
{ Judul }
program for_loops
{ Kamus }
i: Integer
{ Algoritma }
For i <- 0 To 10 Do
Output('Hello world!')
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ... */ | |
android { | |
compileSdkVersion 24 | |
buildToolsVersion "24.0.0" | |
defaultConfig { | |
/* ... */ | |
minSdkVersion 19 | |
/* ... */ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
<!-- ... ---> | |
android:gravity="center" | |
android:orientation="horizontal" | |
<!-- ... ---> | |
> | |
<Button |