C++ program to Compute Area of Circle

Write C++ program to Compute Area of Circle

// CPP program to Compute Area of Circle

#include <iostream>

using namespace std;

int main()
 {

   float radius, area;

   cout << "\nEnter Radius of Circle :--> ";
   cin >> radius;

   area = 3.14 * radius * radius;
   cout << "\nArea of Circle : " << area;

   return 0;
}

Output:

Enter Radius of Circle :--> 5

Area of Circle : 78.500000

≪ Previous | Next ≫