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
#include<iostream>
using namespace std;
int main ()
{
float rad;
double area;
cout<<" Enter the Radius of the Circle \n ";
cin>>rad;
area = 3.14*rad*rad;
cout<<" Area of the Circle is : " <<area;
}
Output of the Program
Area Of Circle |
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.
waooo nyc site .it iz very helpful for seeekrzzzz
ReplyDeletenyc wrk n it'll b very helpful for seekrrzz
ReplyDeleteGood work
ReplyDelete