Breaking

coordinate point in a XY coordinate system and determine


#include <stdio.h>
#include<stdlib.h>
void main()
{
  int co1,co2;
  printf("Input the values for X and Y coordinate : ");
  scanf("%d %d",&co1,&co2);

  if( co1 > 0 && co2 > 0)
  printf("The coordinate point (%d,%d) lies in the First quandrant.\n",co1,co2);

  else if( co1 < 0 && co2 > 0)
  printf("The coordinate point (%d,%d) lies in the Second quandrant.\n",co1,co2);

  else if( co1 < 0 && co2 < 0)
  printf("The coordinate point (%d, %d) lies in the Third quandrant.\n",co1,co2);

  else if( co1 > 0 && co2 < 0)
  printf("The coordinate point (%d,%d) lies in the Fourth quandrant.\n",co1,co2);

  else if( co1 == 0 && co2 == 0)
  printf("The coordinate point (%d,%d) lies at the origin.\n",co1,co2);
 
 
Simple output :
Input the value for X nd Y coordinate 7 9
the coordinate point (7 & 9) in the First quandrant.