The program code in the C ++ language. The radius of the circle is given. Find the circumference and area

The program code in the C ++ language. The radius of the circle is given. Find the circumference and area of a circle using the function.

#include <iostream>

using namespace std;
const float PI = 3.1415;

float length (int r) // function for finding the circumference
{
float l = r * 2 * PI;
return (l);
}

float square (int r) // function for finding the area of a circle
{
float s = r * r * PI;
return (s);
}

int main ()
{
int l, s, r;
cin >> r;
l = length (r);
s = square (r);
}



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.