Pseudocode
Algoritma Game_kereta_mini
Deklarasi
tanya=interger
count=2=interger
Deskripsi
Begin
Writeln(“apakah kamu mau
menjalankan keretamu?”);
Writeln(“1 : mau
2 : tidak mau”)
read(tanya);
if(tanya=1) {
writeln
(" **********************");
writeln
(" oo*********************");
writeln
(" oooo********************");
writeln
(" oo*********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" oo*********************");
writeln
(" oooo******************");
writeln
(" oo***********");
writeln
(" ************");
writeln
(" ************");
writeln
(" ************");
writeln
(" **********************");
writeln
(" oo*********************");
writeln
(" oooo********************");
writeln
(" oo*********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" oo*********************");
writeln
(" oooo******************");
writeln
(" oo***********");
writeln
(" ************");
writeln
(" ************");
writeln
(" ************");
writeln
(" **********************");
writeln
(" oo*********************");
writeln
(" oooo********************");
writeln
(" oo*********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" oo*********************");
writeln
(" oooo******************");
writeln
(" oo***********");
writeln
(" ************");
writeln
(" ************");
writeln
(" ************");
writeln
(" **********************");
writeln
(" oo*********************");
writeln
(" oooo********************");
writeln
(" oo*********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" oo*********************");
writeln
(" oooo******************");
writeln
(" oo***********");
writeln
(" ************");
writeln
(" ************");
writeln
(" ************");
writeln
(" **********************");
writeln
(" oo*********************");
writeln
(" oooo********************");
writeln (" oo*********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" oo*********************");
writeln
(" oooo******************");
writeln
(" oo***********");
writeln
(" ************");
writeln
(" ************");
writeln(" ************");
count++;
}
while (count>1);
}
else {
writeln (" **********************");
writeln
(" oo*********************");
writeln
(" oooo********************");
writeln
(" oo*********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" **********************");
writeln
(" oo*********************");
writeln
(" oooo******************");
writeln
(" oo***********");
writeln
(" ************");
writeln
(" ************");
writeln(" ************");
}
end
Flowchart
Console