program rectangle;
var a, b, perimeter, area: real;
begin
writeln('Сторона a: ');
// writeln('Input a: ');
readln(a);
writeln ('Сторона b: ');
// writeln('Input b: ');
readln(b);
perimeter := 2 *(a + b); area := a * b;
writeln ('Периметр: ', perimeter);
writeln('Площадь: ', area);
//writeln ('Perimeter: ', perimeter);
//writeln('Area: ', area);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
program rectangle;
var a, b, perimeter, area: real;
begin
writeln('Сторона a: ');
// writeln('Input a: ');
readln(a);
writeln ('Сторона b: ');
// writeln('Input b: ');
readln(b);
perimeter := 2 *(a + b); area := a * b;
writeln ('Периметр: ', perimeter);
writeln('Площадь: ', area);
//writeln ('Perimeter: ', perimeter);
//writeln('Area: ', area);
end.