Ganjil-genap (Prolog)

|

genap:-nl,
write('masukan angka:'),nl,
read(A),nl,
B is A mod 2,
B is 0,
write('bilangan Genap:');
write('bilangan Ganjil:').

0 komentar:

Posting Komentar