Sunday, September 23, 2012

Program 9 Co-Ordinates X and Y


#include<stdio.h>
#include<conio.h>
void main()
{
int x,y;
clrscr();
printf("enter value of X:");
scanf("%d",&x);
printf("enter value of Y:");
scanf("%d",&y);


if(x<=0&&y<=0)
{
printf("it line onX-axis");
}

else
{
printf("it line on Y-axis");
}

if(x==0&&y==0)
{
printf("it line nither x-axis or nither y-axis");
}

getch();
}

No comments:

Post a Comment