// Renārs Pujats, 110.Grupa
//PR7-3
//Compiler: OnlineGDB.com
using System;

class Program
{
    static void Main()
    {
   
        Console.WriteLine("Ievadiet pirmā punkta koordinātes:");
        Console.Write("x1 = ");
        double x1 = double.Parse(Console.ReadLine());
        Console.Write("y1 = ");
        double y1 = double.Parse(Console.ReadLine());

        Console.WriteLine("Ievadiet otrā punkta koordinātes:");
        Console.Write("x2 = ");
        double x2 = double.Parse(Console.ReadLine());
        Console.Write("y2 = ");
        double y2 = double.Parse(Console.ReadLine());

        double attalums = AprekinatPlaknesAttalumu(x1, y1, x2, y2);
        Console.WriteLine($"\nAttālums starp punktiem: {attalums}");

        Console.Write("\nIevadiet leņķi grādos: ");
        double gradi = double.Parse(Console.ReadLine());
        double radiani = KonvertetRadianos(gradi);
        Console.WriteLine($"Radiānos: {radiani}");
    }
static double AprekinatPlaknesAttalumu(double x1, double y1, double x2, double y2)
    {
        double deltaX = x2 - x1;
        double deltaY = y2 - y1;

        return Math.Sqrt(Math.Pow(deltaX, 2) + Math.Pow(deltaY, 2));
    }

    static double KonvertetRadianos(double gradi)
    {
        return gradi * (Math.PI / 180.0);
    }
}
