Skip to main content

C++: Program to calculate and display area of a circle

C++: Program to calculate and display area of a circle


#include <iostream>
using namespace std;
int main()
{

    float radius;
    float area;
    cout << "enter radius:";
    cin >> radius;
    area = radius * radius * 3.14;
    cout << "area of the circle of is:" << area;
    return 0;
}



Result -