C++ Program to Find the Area of Circle
Write C++ Program to Find the Area of Circle
// CPP Program to Find the Area of Circle #include <iostream> #define PI 3.14 using namespace std ; int main() { float radius, area; cout << "Enter radius of circle :--> "; cin >> radius; area = PI * radius * radius; //Formula to find the area of circle cout << "Area of circle is :--> " << area; return 0; }
Output:
Enter radius of circle :--> 23
Area of circle is :--> 1661.06