C languageC SolutionChapter 3Programming

Q12 Given a point (x, y), write a program to find out if it lies on the x-axis, y-axis or on the origin, viz. (0,0).

Program: 80

Given a point (x, y), write a c program to find out if it lies on the x-axis, y-axis or on the origin, viz. (0,0).

Output:

 Enter the co-ordinates of point: 0 5
 Point (0, 5) lies on y-axis

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.