Skip to content

Instantly share code, notes, and snippets.

@srifqi
Created November 9, 2018 01:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srifqi/b292ea82494cd348aaa2c66a752ddaeb to your computer and use it in GitHub Desktop.
Save srifqi/b292ea82494cd348aaa2c66a752ddaeb to your computer and use it in GitHub Desktop.
Program pemeriksa genap-ganjil bilangan
program genapganjil;
var A, B, jumlah: integer;
begin
readln(A);
readln(B);
jumlah := A + B;
if jumlah mod 2 = 0 then
writeln('Jumlah genap.')
else
writeln('Jumlah ganjil');
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment