1public class ProgrammingEx5_4 {
2
3 public static void main(String[] args) {
4 final int END = 10;
5
6 // printing table header
7 System.out.printf("%-9s%15s\n", "Miles", "Kilometers");
8
9 for (int i = 1; i <= END; i++) {
10 System.out.printf("%-9d%15.1f\n", i, i * 1.609);
11
12 }
13
14 }
15
16}
17