# Create an algorithm and a program for calculating the circumference of a circle, if its radius is given. (L = 6.28 * R)

August 22, 2021 | education

| program zz1;

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

begin

write (‘enter the initial value for the radius of the circle’); // enter the initial value of the circle radius from the keyboard

read (r);

L: = 6.28 * r; // calculate the circumference using the given formula

write (‘the resulting value of the circumference =’, L: 5: 2); // display the answer in the format of five digits 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.