标签:
1 public class Solution 2 { 3 public static void main(String[] args) 4 { 5 final double MILES_PER_KILOGRAM = 1.609; 6 7 System.out.println("Miles" + "\t" + "Kilograms" + "\t" + "Kilograms" + "\t" + "Miles"); 8 9 for(int i = 1, j = 20; i <= 10 && j <= 65; i++, j += 5) 10 System.out.println(i + "\t" + i * MILES_PER_KILOGRAM + "\t" + j + "\t" + j * 1.0 / MILES_PER_KILOGRAM); 11 } 12 }
标签:
原文地址:http://www.cnblogs.com/wood-python/p/5768795.html