Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 739 Bytes

File metadata and controls

30 lines (25 loc) · 739 Bytes

Point in Circle

Challenge Description:

Having coordinates of the center of a circle, it's radius and coordinates of a point you need to define whether this point is located inside of this circle.

Input sample:

Your program should accept as its first argument a path to a filename. Input example is the following

Center: (2.12, -3.48); Radius: 17.22; Point: (16.21, -5)
Center: (5.05, -11); Radius: 21.2; Point: (-31, -45)
Center: (-9.86, 1.95); Radius: 47.28; Point: (6.03, -6.42)

All numbers in input are between -100 and 100

Output sample:

Print results in the following way.

true
false
true