import java.util.Scanner;
public class Main {
public static void main(String[] args) {
//Scanner scanner = new Scanner(System.in);
System.out.println("---------------------------------------------------");
System.out.println("COUNTRY AREA(10K km2) POP.(10K) GDP(Billion$)");
System.out.println("---------------------------------------------------");
String country[]={"China ","Iceland ","India ","Madagascar ","Maldive "};//8,6,8,3,7
double a[][]={{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}};
for(int i=0;i<4;i++)
{
System.out.printf(country[i]);
System.out.printf("%12.2f%11.2f %.2f",a[i][0],a[i][1],a[i][2]);
System.out.println();
}
System.out.println("Maldive 0.0298 27.80 0.23");
System.out.println("---------------------------------------------------");
}
}
0.0分
0 人评分