#include <iostream>
const float PI = 3.1415926;
float circarea(float r)
{
return PI * r * r;
}
int main()
{
float radius;
std::cout << "Enter circle radius : ";
std::cin >> radius;
std::cout << "Circle area = " << circarea(radius) << "\n";
}
Comments
Leave a comment