# include <iostream.h>
# include<conio.h>
void computecircle(float*,float*, float );
void main( )
{
float a,c,r;
cout<<"\n Enter the radius : ";
cin>>r;
computecircle(&a,&c,r);
cout<<"n The area of a circle of radius "<<r<<" is "<<a
<<"\n and its circumference is " <<c<<endl;
}
void computecircle(float *area, float *circ, float r )
{
const double PI=3.141592653589793;
*area = PI*r*r;
*circ = 2*PI*r;
}
3 comments:
i want this program using inline function
i want this program using inline function
I seldom leave comments, however i did some searching
and wound up here "Program to compute Area & circumference of circle".
And I do have a couple of questions for you if it's allright. Is it just me or does it appear like a few of the remarks look like left by brain dead folks? :-P And, if you are posting on additional sites, I'd like to keep up with everything
fresh you have to post. Could you list of all of all your community pages like your Facebook page, twitter feed,
or linkedin profile?
Here is my weblog ... cellulite treatment cream
Post a Comment