//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");
}
#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");
}
0 Questions:
Post a Comment