Created
March 1, 2015 14:12
-
-
Save Kanol/f93cd23661c5386a0a88 to your computer and use it in GitHub Desktop.
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 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