Class for storing point coordinates

Kotlin Easy data classes

Task «Class for storing point coordinates»

Create a data class Point with fields x and y of type Int. Write a function that takes two strings: the first contains the x and y coordinates of the first point separated by a space, the second contains the coordinates of the second point. Output the distance between the points with an accuracy of two decimal places. The distance is calculated using the formula sqrt((x2-x1)^2 + (y2-y1)^2).

Input Format

Two strings, each containing two integers separated by a space: x and y.

Output Format

One real number — the distance with two decimal places.

main.kt