var
a,b,c,d : real;
haveNegative : boolean;
begin
haveNegative := false;
readln(a,b,c,d);
if a < 0 then
haveNegative := true;
if b < 0 then
if c < 0 then
if d < 0 then
if haveNegative then
writeln('Cреди данных чисел есть отрицательное!')
else
writeln('Среди данных чисел отрицательного нет!');
end.
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var
a,b,c,d : real;
haveNegative : boolean;
begin
haveNegative := false;
readln(a,b,c,d);
if a < 0 then
haveNegative := true;
if b < 0 then
haveNegative := true;
if c < 0 then
haveNegative := true;
if d < 0 then
haveNegative := true;
if haveNegative then
writeln('Cреди данных чисел есть отрицательное!')
else
writeln('Среди данных чисел отрицательного нет!');
end.