main()
{
int a,b,c,d,a1,b1,c1,d1;
printf("enter the value of a1\t=");
scanf("%d",&a);
printf("enter the value of b1\t=");
scanf("%d",&b);
printf("enter the value of c1\t=");
scanf("%d",&c);
printf("enter the value of d1\t=");
scanf("%d",&d);
printf("enter the value of a2\t=");
scanf("%d",&a1);
printf("enter the value of b2\t=");
scanf("%d",&b1);
printf("enter the value of c2\t=");
scanf("%d",&c1);
printf("enter the value of d2\t=");
scanf("%d",&d1);
if(((a<a1)&(a1<c))&&((b<b1)&(b1<d)))
{
printf("***********The given rectangles are overlap each other*************\n");
}
else
{
printf("*****not overlap*****\n");
}
}
{
int a,b,c,d,a1,b1,c1,d1;
printf("enter the value of a1\t=");
scanf("%d",&a);
printf("enter the value of b1\t=");
scanf("%d",&b);
printf("enter the value of c1\t=");
scanf("%d",&c);
printf("enter the value of d1\t=");
scanf("%d",&d);
printf("enter the value of a2\t=");
scanf("%d",&a1);
printf("enter the value of b2\t=");
scanf("%d",&b1);
printf("enter the value of c2\t=");
scanf("%d",&c1);
printf("enter the value of d2\t=");
scanf("%d",&d1);
if(((a<a1)&(a1<c))&&((b<b1)&(b1<d)))
{
printf("***********The given rectangles are overlap each other*************\n");
}
else
{
printf("*****not overlap*****\n");
}
}
No comments:
Post a Comment