1 public class Solution 2 { 3 public static void main(String[] args) 4 { 5 final double POUND_PER_KILOGRAM = 2.2; 6 7 System.out.println("KILOGRAM" + "\t" + "POUND"); 8 for(int i = 1; i < 200; i += 2) 9 System.out.println(i + "\t" + i * POUND_PER_KILOGRAM); 10 } 11 }
时间: 2024-10-11 01:46:32