Skip to content

Instantly share code, notes, and snippets.

@Kanol
Created March 1, 2015 14:12
Show Gist options
  • Save Kanol/f93cd23661c5386a0a88 to your computer and use it in GitHub Desktop.
Save Kanol/f93cd23661c5386a0a88 to your computer and use it in GitHub Desktop.
program n1;
var a:Integer;
begin
Readln(a);
if a>0 then begin
if a mod 2 = 0 then
writeln('Число положительное и четное')
else
writeln('Число положительное и нечетное');
end
else begin
if a<0 then begin
if a mod 2 = 0 then begin
writeln('Число отрицательное и четное')
end
else
writeln('Число отрицательное и нечетное')
end
else
writeln('Число равно нулю')
end;
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment