public class Solution { public static void main(String[] args) { final double MILES_PER_KILOGRAM = 1.609; System.out.println("Miles" + "\t" + "Kilograms" + "\t" + "Kilograms" + "\t" + "Miles"); for(int i = 1, j = 20; i <= 10 && j <= 65; i++, j += 5) System.out.println(i + "\t" + i * MILES_PER_KILOGRAM + "\t" + j + "\t" + j * 1.0 / MILES_PER_KILOGRAM); } }