Point Distance

Programming Interview Easy 8 views
Back to Questions

Problem Description

You're given {x}. Create Point class with method dist0() giving distance from origin. Output with 3 decimals.

Input Format

One line: x y.

Output Format

One number distance.

Sample Test Case

Input:
3 4
Output:
5.000

Constraints

|x|,|y|

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next