{ Judul }
Menentukan_indeks_nilai
{ Kamus }
nilai: Real
indeks: Char
{ Algoritma }
Input(nilai);
{ Pemilihan - N Kasus dengan Kasus N - 1 }
If nilai > 80 Then
indeks <- 'A'
ElseIf nilai > 70 Then
indeks <- 'B'
ElseIf nilai > 60 Then
indeks <- 'C'
ElseIf nilai > 40 Then
indeks <- 'D'
Else
indeks <- 'E'
Output(indeks)
Last active
November 14, 2016 02:16
-
-
Save mochadwi/ce899060e56a0ca6a77a9f02bc0115e5 to your computer and use it in GitHub Desktop.
Algoritma Pemilihan (Selection) - Pseudocode N Kasus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment