Computer Science, asked by monikak6177, 1 year ago

en the left bottom coordinate, length and width of the two fields, write a program to find dimension of the fence. Print “Invalid Input” if the fields overlap.

Input Format:

The 1st line of the input consists of 4 integers separated by a space that correspond to x, y, l and w of the first rectangle.

The 2nd line of the input consists of 4 integers separated by a space that correspond to x, y, l and w of the second rectangle.

Output Format:

Output consists of 4 integers that correspond to x, y, l and w of the Union rectangle.


Sample Input 1:
0 2 4 3
4 0 2 8
Sample Output 1:
0 0 6 8

Sample Input 2:
0 2 4 3
3 0 2 8
Sample Output 2:
Invalid Input

Answers

Answered by varad735
1
hi I varad subscribe my channel vvjket at g for ui
Similar questions