#include<iostream.h>
#include<conio.h>
class Circle
{
private:
int radious;
public:
void Create(int w)
{
radious=w;
}
float Area()
{
return 3.14*radious*radious;
}
};
void main()
{
Circle C1;
clrscr();
C1.Create(100);
cout<<"\n Area of the circle is "<<C1.Area();
getch();
}
No comments:
Post a Comment