#include <iostream>
class point
{
int x;
int y;
public:
void setXY(int a,int b)
{
x=a;
y=b;
}
void setXY1(){
int x1,y1;
std::cout<<"please input X position of point"<<std::endl;
std::cin>>x1;
std::cout<<"please input Y position of point"<<std::endl;
std::cin>>y1;
x = x1;
y = y1;
}
int getX()
{
return x;
}
int getY()
{
return y;
}
};
class circle
{
point center;
int r;
public:
void setR(int a)
{
r=a;
}
void setcenter (point b)
{
center =b;
}
point getcenter()
{
return center;
}
int getR()
{
return r;
}
};
int main() {
circle a;
point center;
center.setXY(10,10);
a.setR(10);
a.setcenter(center);
point b;
b.setXY(10,21);
int length1 = a.getcenter().getX() - b.getX();
int length2 = a.getcenter().getY() - b.getY();
int total = length1*length1+length2*length2;
int c = a.getR();
if(total>c*c)
{
std::cout<<"point is outside the circle"<<std::endl;
} else if (total == c*c )
{
std::cout<<"point is on the circle"<<std::endl;
} else
{
std::cout<<"point is inside the circle"<<std::endl;
}
}