Given the length L of the circle. Find its radius R and area S of the circle bounded by this circle

Given the length L of the circle. Find its radius R and area S of the circle bounded by this circle, taking into account that L = 2 * Pi * R, S = Pi * R ^ 2. Use 3.14 as Pi value. In pascal, the code is needed for the task.

program zz1;

var r, L, S: real; // set variables of non-integer type

begin

write (‘enter the original value for the circumference’); // enter the initial value L from the keyboard

read (L);

R: = L / 2 * pi; // calculate the radius of the circle using the given formula

writeln (‘the obtained value of the radius of the circle =’, R: 5: 2); // display the answer in the format of five digits for the whole number and two decimal places

S: = pi * R * R; // calculate the area of a circle according to the given formula

write (‘the resulting value of the area of the circle =’, S: 5: 2); // display the answer in the format of five characters for the whole number and two decimal places

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.