Q11 Given the coordinates (x, y) of center of a circle and its radius, write a program which will determine whether a point lies inside the circle, on the circle or outside the circle. (Hint: Use sqrt() and pow() functions)

Program: 79

Given the coordinates (x, y) of center of a circle and its radius, write a c program which will determine whether a point lies inside the circle, on the circle or outside the circle. (Hint: Use sqrt() and pow() functions)

Output:

Enter the center co-ordinates of the circle: 0 0
Enter the radius of the circle: 6
Enter the point co-ordinates: 0 7
Point (0,7) lies outside the circle.

Lokesh Kumar

Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.