Created
November 9, 2018 01:24
-
-
Save srifqi/b292ea82494cd348aaa2c66a752ddaeb to your computer and use it in GitHub Desktop.
Program pemeriksa genap-ganjil bilangan
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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