试题 算法提高 格式化数据输出

题目描述
在这里插入图片描述
资源限制
时间限制:1.0s 内存限制:512.0MB

代码块

public class Main {
	public static void main(String[] args){
		
		String s1 = "---------------------------------------------------";
		String s2 = "COUNTRY     AREA(10K km2)  POP.(10K)  GDP(Billion$)";
		String s3 = "China              960.00  129500.00  1080.00";
		String s4 = "Iceland             10.30      27.57  8.20";
		String s5 = "India              297.47   97000.00  264.80";
		String s6 = "Madagascar          62.70    1635.00  3.60";
		String s7 = "Maldive            0.0298      27.80  0.23";
		System.out.println(s1+"\n"+s2+"\n"+s1+"\n"+s3+"\n"+s4+"\n"+s5+"\n"+s6+"\n"+s7+"\n"+s1);
	}
}

在这里插入图片描述

发布了86 篇原创文章 · 获赞 3 · 访问量 1386

猜你喜欢

转载自blog.csdn.net/wnamej/article/details/105445914