Skip to content

Instantly share code, notes, and snippets.

@Kanol
Created February 23, 2015 08:18
Show Gist options
  • Save Kanol/e5eb994859ddc7704571 to your computer and use it in GitHub Desktop.
Save Kanol/e5eb994859ddc7704571 to your computer and use it in GitHub Desktop.
program n1;
var a, b, c:integer; d:real;
begin
readln(a);
readln(b);
c:=a+b;
if c mod 2=0 then
d:=a*b
else
d:=a/b;
writeln(d);
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment