program sa;
uses crt;
var x:integer;
begin
clrscr;
readln(x);
if x>0 then x:=x+1;
if x<0 then x:=x-2;
if x=0 then x:=10;
writeln(x);
readln;
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
begin
read(n);
if n = 0 then
write('10') else
if n > 0 then
write(n+1) else
if n < 0 then
write(n-2);
end.
program sa;
uses crt;
var x:integer;
begin
clrscr;
readln(x);
if x>0 then x:=x+1;
if x<0 then x:=x-2;
if x=0 then x:=10;
writeln(x);
readln;
end.