Java · Strings, Math and input

The Math class

Square roots, powers and rounding come ready-made in Java, and the type each one hands back decides what your program prints.