1 /*To find whether a point lies on,inside or outside a circle */
14 printf("Enter the center of the circle X1, Y1 :");
15 scanf("%d %d",&x1
,&y1
);
16 printf("Enter the radius of the circle:");
19 printf("Enter the point (x,y):");
22 /*computing the distance between the two points*/
23 temp
= pow(x1
-x
,2)+pow(y1
-y
,2);
28 printf("The point (%d,%d) lies on the circle\n",x
,y
);
30 printf("The point lies inside the circle\n");
32 printf("The point lies outside the circle\n");