/** Printf.java - Let's play with the printf method. * Print the square roots of multiples of 5. */ public class Printf { public static void main(String [] args) { for (int i = 50; i <= 1250; i += 5) { System.out.printf("The square root of %4d is %6.3f\n", i, Math.sqrt(i)); } } }