解题思路:
注意事项:
参考代码:
public class Main {
public static void main(String[] args){
String[] COUNTRY= {"China ","Iceland ","India ","Madagascar ","Maldive "};
double[][] APG= {{960.00,129500.00,1080.00},{10.30,27.57,8.20},{297.47,97000.00,264.80},{62.70,1635.00,3.60},{0.0298,27.80,0.23}};
System.out.println("---------------------------------------------------");
System.out.println("COUNTRY AREA(10K km2) POP.(10K) GDP(Billion$)");
System.out.println("---------------------------------------------------");
int i;
for(i=0;i<4;i++) {
System.out.print(COUNTRY[i]);
System.out.printf("%12.2f%11.2f %.2f\n",APG[i][0],APG[i][1],APG[i][2]);
}
System.out.println("Maldive 0.0298 27.80 0.23");
System.out.println("---------------------------------------------------");
}
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题9.2 (C语言代码)浏览:573 |
1035 题解浏览:875 |
C二级辅导-进制转换 (C语言代码)浏览:750 |
蛇行矩阵 (C语言代码)浏览:560 |
IP判断 (C语言代码)浏览:592 |
交换Easy (C语言代码)浏览:805 |
C语言程序设计教程(第三版)课后习题9.10 (C语言代码)浏览:660 |
C语言程序设计教程(第三版)课后习题9.6 (C语言代码)浏览:441 |
1073题解浏览:652 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:539 |