My Profile

Ahmednagar, Maharashtra, India
I, Das ShrikKrishna J. MCA III IMSCD&R, Ahmednagar.

Monday, 18 July 2011

Program for cal. area & para of circle (C++)

// Program for cal. area & para of circle
#include<iostream.h>
#include<conio.h>
void area(float r,float &areap)
{
areap=3.14*r*r;
}
void peri(float r,float &peri1)
{
peri1=2*3.14*r;
}
void main()
{
float rad,areap,peri1;
areap=peri1=0;
clrscr();
cout<<"\n Enter the radius= ";
cin>>rad;
area(rad,areap);
cout<<"\n Area of circle = "<<areap;
peri(rad,peri1);
cout<<"\n Perimeter of circle= "<<peri1;
getch();
}

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cheap international calls