CHANGE POSITION
The room that Patrick and Johnny were staying was very big. They felt lazy to walk inside
the room from the bed's location to another location. So they wanted to change the
position of the bed. The shape of the room is a Square. They decided to place the bed at
the exact center of the room so that their walking distance would be minimized. Can you
please help them in placing the bed at the exact center?
Given the coordinates of the left bottom vertex of the square room and the length of the
side, you need to write a program to determine the coordinates of the center of the room.
[Assumption -- Length of the side is always even]
Input format
Input consists of 3 integers. The first integer corresponds to the x-coordinate of the left
bottom vertex. The second integer corresponds to the y-coordinate of the left bottom
vertex. The third integer corresponds to the length of the square.
Output format
Refer Sample Input and Output for exact formatting specifications.
Sample testcases
Input 1
Output 1
The centre of the room is at (18,38)
16
Answers
Answered by
0
Answer:
ggcjhfgfgfhgyyghiugg
Similar questions