var a: integer;begin; Read(a); if a > 0 then a := a + 1 else a := a - 2; Writeln('a = ', a);end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var
a: integer;
begin;
Read(a);
if a > 0 then
a := a + 1
else
a := a - 2;
Writeln('a = ', a);
end.
Verified answer
Program chisla;Uses Crt;
Var a:integer;
Begin;
Writeln ('Введите любое целое число');
Readln a;
If a>0 then a:=a+1 else a:=a-2;
Writeln ('a=',a);
End