CJCoding With Joseph

Midpoint of Two Points

Two points are given: a = {2, 4} and b = {6, 8}. Compute the midpoint by averaging the x-coordinates and the y-coordinates, then print them separated by a space:

4 6

The sums here are even, so integer division gives exact results. There is no trailing newline.

Expected Output:

4 6
Topics:
Structs
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (p, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.