technotip.com/7168/c-program-t...
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(0, 0).
Logic To Check If Point(x, y) Lies on x-axis or y-axis or Origin
In point (x, y), if x = 0 and y = 0, then the point lies on the origin. If value of x is zero and y is greater than zero, then the point lies on y-axis. If y is zero and x is greater than zero, then the point lies on x-axis.
C Programming Interview / Viva Q&A List
technotip.com/6378/c-programmi...
C Programming: Beginner To Advance To Expert
technotip.com/6086/c-programmi...
Негізгі бет C Program To Check If Point Lies on x-axis or y-axis or Origin
Пікірлер: 4