Alright, so this is what I came up with so far.
But I'm getting an error:invalid lvalue in assignment on line 20 and 22. Am I doing the else if statements wrong?
Code:
/* Directives */
#include <stdio.h>
#include <math.h>
int main(void)
{
int x, y;
printf("Enter coordinate pair: ");
scanf("%d %d", &x, &y);
if (x = 0 && y > 0)
printf("Positive y Axis");
else if (x > 0 && y = 0)
printf("Positive x Axis");
else if (x < 0 && y = 0)
printf("Negative x Axis");
else if (x = 0 && y < 0)
printf("Negative y Axis");
/* End Program */
return(0);
}