На Паскале:
var s,a,b:real;
begin
a:=5;
b:=-3.5;
s:=a+b;
s:=2*s-b;
writeln('s = ',s);
end.
На Python:
a=5, b=-3.5
s=a+b, s=2*s-b
print(s)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
На Паскале:
var s,a,b:real;
begin
a:=5;
b:=-3.5;
s:=a+b;
s:=2*s-b;
writeln('s = ',s);
end.
На Python:
a=5, b=-3.5
s=a+b, s=2*s-b
print(s)