Wednesday, 27 August 2014

Area of Ellipse solution in c plusplus

Leave a Comment


//Area of Ellipse pi × radius1 × radius2
#include<iostream>
#include<conio.h>
#include<math.h>
using namespace std;
static double pi=3.1415926535;
int main()
{
double radius1,radius2,Ans;
cout<<"Enter Radius 1 = ";
cin>>radius1;
cout<<"Enter Radius 2 = ";
cin>>radius2;
Ans=pi*radius1*radius2;
cout<<"Area of Ellipse = "<<Ans;
getch();
}
If You Enjoyed This, Take 5 Seconds To Share It

0 Questions: