Create a program with which the computer asks for the length and width of the rectangle and calculates the perimeter

Create a program with which the computer asks for the length and width of the rectangle and calculates the perimeter and area and displays the result on the screen.

The program is written in Pascal:

var a, b, p, s: real;
begin
writeln (‘Enter the length of the rectangle’);
readln (a);
writeln (‘Enter the width of the rectangle’);
readln (b);
p: = (a + b) * 2;
s: = a * b;
writeln (‘Perimeter of the rectangle =’, p);
writeln (‘Area of the rectangle =’, s);
end.



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.