Задание 1:a = 6b = 1b = a / 2 b = 6 / 2 1 = 3a = 2 a + 3 b = 2 6 + 3 3 = 12 + 9 = 21Таким образом, a = 21
Задание 2:program n_1;const pi = 3.14;var r, c, s: real;beginr := 5.4;c := 2 pi r;s := pi r r;writeln("c=", c:6:4);writeln("s=", s:6:4);end.
Задание 1:
a = 6
b = 1
b = a / 2 b = 6 / 2 1 = 3
a = 2 a + 3 b = 2 6 + 3 3 = 12 + 9 = 21
Таким образом, a = 21
Задание 2:
program n_1;
const pi = 3.14;
var r, c, s: real;
begin
r := 5.4;
c := 2 pi r;
s := pi r r;
writeln("c=", c:6:4);
writeln("s=", s:6:4);
end.