Sunday, 10 August 2014

Write a Program in C++ which calculate the area of a circle

Structure of the Problem Requirements 

In this problem we learn how to calculate area of a circle in C++ program . The program will asked user to enter the radius of the circle , then apply the circle area formula and display the output. These values may be in points so we take them in float and double.

Source Code 

using namespace std;
int main ()

float rad;
double area;
cout<<" Enter the Radius of the Circle \n ";
area = 3.14*rad*rad;
cout<<" Area of the Circle is : " <<area;

Output of the Program

C++ Programming
Area Of Circle

Share it Please

About Author!

Asad Niazi is Software Engineer , Programmer, Web Developers and a young mentor of Tech Solutions Desk and Blogging Solutions . Asad Love to writes about Technology, Programming, Blogging and make money online.

3 comments: Post Yours! Read Comment Policy!▼
Important Note:
We have Zero Tolerance to Spam. Chessy Comments and Comments with Links will be deleted immediately upon our review.