2.c++ program to find the area of a circle






// C++ program to find the area of a circle

INPUT:

#include<iostream>

using namespace std;

int main()

{

    int radius;

    float area;

    cout<<"\n Enter Radius:";

    cin>>radius;

    area = 3.14 * radius * radius;

    cout<<"\n The area of circle = "<<area;

}

OUTPUT:







Comments