Skip to content

Instantly share code, notes, and snippets.

@yudium
Created November 2, 2015 09:24
Show Gist options
  • Save yudium/7ba08a466d815efd3178 to your computer and use it in GitHub Desktop.
Save yudium/7ba08a466d815efd3178 to your computer and use it in GitHub Desktop.
program_belajar_procedure
var
A : Integer;
// ----------------------------------------------------
Procedure Tampilkan(output A : Integer)
Kamus :
{tidak ada}
Algoritma :
Output(A) // menampilkan nilai A, dimana nilai A sudah didefenisikan sebelum procedure dipanggil.
A ← 999 // mengubah nilai variabel A global didalam procedure
EndProcedure
// ----------------------------------------------------
{algoritma utama}
algoritma:
A ← 1000
Tampilkan(A)
Output(A) // 999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment