PRINT THE MID POINT

I am confused about how to print (cout) the midpoint. Please suggest the required changes.

@mverma_be19
Your code was fine barring a few errors. Please use the struct keyword before declaring objects. To avoid using the keyword, use classes. Rest your code for the mid point is absolutely correct.

If my solution is able to clear your query, please mark the doubt as resolved.