#include <stdio.h>
int main() {
int x,y;
printf("enter the numbers from your quadrant: ");
scanf("%d%d",&x,&y);
if (x>0 && y>0){
printf("\nthe coordinates are from the first quadrant");
}
else if (x<0 && y>0){
printf("\nthe coordinates are from the second quadrant");
}
else if (x<0 && y<0){
printf("\nthe coordinates are from the third quadrant");
}
else{
printf("\nthe coordinates are from the fourth quadrant");
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: