Write a program to calculate the length and area of a circle if r = 5.9. Keyboard input.

const
p = 3.14;
r = 5.9;

var
s, l: real; // where s is the area of the circle and l is the length of the circle.

begin
cls;
s: = p * r * r;
l: = 2 * p * r;
writeln (‘The circumference of a given radius is’, l, ‘.’);
writeln (‘The area of a circle of a given radius is’, 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.