#include<iostream.h>
#include<conio.h>
void main ()
{
clrscr ();
float C,r,a;
cout<<“Enter radius of the circle “;
cin>>r;
float const Pi=3.14;
C=2*Pi*r;
a=Pi*r*r;
cout<<“Circumference or Perimeter of the circle is “<<C<<“\n”<<“Area of the circle is “<<a;
getch();
}
#include<conio.h>
void main ()
{
clrscr ();
float C,r,a;
cout<<“Enter radius of the circle “;
cin>>r;
float const Pi=3.14;
C=2*Pi*r;
a=Pi*r*r;
cout<<“Circumference or Perimeter of the circle is “<<C<<“\n”<<“Area of the circle is “<<a;
getch();
}
No comments:
Post a Comment