System.out.println("Degrees \tRadians \tGrads"); for (double degrees = 0.0; degrees < 360.0; degrees++) { double radians = Math.PI * degrees / 180.0; double grads = 400 * degrees / 360; System.out.println(degrees + "\t" + radians + "\t" + grads); }