fb pixel

Midpoint coordinates

Given two points on a coordinate plane, your task is to find the midpoint coordinate of those. Given the x1 and y1 coordinates of the first point and x2 and y2 coordinates of the second point, write a program that would output the midpoint coordinates x0 and y0.
 
notion image
Input
Output
3 5 2 1
2.5 3
3 3 3 4
3 3.5
To check your solution you need to sign in
Sign in to continue