Skip to content

zohaib166/cpp-exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Exercise1

Complete the Point class so that it can find distance between two points and mid point of the line joining the two points
Expected input will be two coordinates in the form of x1 y1 x2 y2
Expected output will be 'scalar distance between two points' and mid point of the line joining two given points in the form of (x,y)

Example 1:
Input:
4 6 4.5 6.7
Output
6
(4,3)

Example 2:
Input:
10 12 10.5 12.5
Output
12
(10,6)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages