UTS Pemdas Kegiatan terbaru situs unk1546 UTS Pemdas

Soal UTS Semester Pendek
IF Pemrograman Dasar
Waktu 3 jam
Closed Book, Computer, Gadget
A. Buatkan tabel IO untuk program
berikut:
1.

5.

begin
read (a);
if a>0 then writeln('Bandung')
else
writeln('Banjarmasin');
writeln('Cirebon');
end.

2.
begin
read (a);

if a>0 then writeln('Bandung')
else
begin
writeln('Banjarmasin');
writeln('Cirebon');
end;
end.

begin
read (a);
if a>0 then writeln('Bandung');
writeln('Cirebon');
if a5 then writeln ('Cirebon');
if a>0 then writeln('Bandung');
if a=0 then writeln ('Jakarta');
if a0 then writeln('Bandung')
else writeln('Cirebon');
if a=0 then writeln ('Jakarta')
else writeln('Aceh');
if a