Wednesday, 27 August 2014

Area of Cone (surface) solution in cpp

Leave a Comment
//Area of Cone (surface) pi × radius × side
#include<iostream>
#include<math.h>
using namespace std;
static double pi=3.1415926535;
int main()
{
double radius,side,Ans;
cout<<"Enter Radius = ";
cin>>radius;
cout<<"Enter Side = ";
cin>>side;
Ans=pi*radius*side;
cout<<"Area of Cone (surface) = "<<Ans<<endl;
system("pause");
}
If You Enjoyed This, Take 5 Seconds To Share It

0 Questions: