#include <stdio.h>
#include <math.h>
int main(void)
{
/*Declare and initialize variables. */
double a=50, b=50, ellipse, pi=3.14159265359;
/*solves for area of an ellipse*/
ellipse = pi*a*b;
/*print Nicole's code*/
printf("The area of the ellipse is ""%5.2f \n" "units^2" ,ellipse);
//exit program
return 0;
}
No comments:
Post a Comment