Selasa, 26 Juni 2012

ganjil genap ( PASCAL )

program pascal;
uses wincrt;
var b:longint;
hasil : integer;

begin
writeln('bilangan = '); readln(b);
if (b mod 2)=1 then
write('ganjil')
else
write('genap');

end.

Tidak ada komentar:

Posting Komentar