Math.toRadians method

package app;

public class Main
{
    public static void main(String[] args)
    {
        double degrees = 180;
        double radians = Math.toRadians(degrees);

        System.out.println(radians);
    }
}

Leave a Comment

Your email address will not be published. Required fields are marked *