Navigation Bar

Calculate Circumference With Function

#include<iostream.h>
#include<conio.h>
float area(int&);
float Circumference(int&);
void main()
{
 clrscr();
 int r;
 float a;
 cout<<"enter radius=";
 cin>>r;
 a=area(r);
 cout<<"area="<<a<<endl;
 a=Circumference(r);
 cout<<"Circumference ="<<a<<endl;
 getch();
}
//Area function
float area(int&r)
{
  float a;
  return a=r*r*3.14;
}
//Circumference function
float Circumference(int&r)
{
  float a;
  return a=2*3.14*r;

}