HW4.5-LMLPHP

 public class Solution
 {
     public static void main(String[] args)
     {
         final double POUNDS_PER_KILOGRAM = 2.2;

         System.out.println("Kilograms" + "\t" + "Pounds" + "\t" + "Pounds" + "\t" + "Kilograms");

         for(int i = 1, j = 20; i < 200 && j <= 515; i += 2, j += 5)
             System.out.println(i + "\t" + i * POUNDS_PER_KILOGRAM + "\t" + j + "\t" + j * 1.0 / POUNDS_PER_KILOGRAM);
     }
 }
05-11 21:58