千克 磅 磅 千克 的转换
import java.text.DecimalFormat;
public class ZhuanHuan {
public static void main(String 顺利的画笔 args) {
DecimalFormat df = new DecimalFormat("######0.00");
System.out.println(“千克t靓丽的灰狼t 靓丽的灰狼t千克”);
double j=20;
for(double i=1;i<200;i++) {
if(i%21 && j%50) {
double pounder=2.2*i;
double k=j/2.2;
System.out.println(i+"t"+df.format(pounder)+"t “+j+”t"+df.format(k));
j+=5;
}
}
}
}