Chinaunix's Archiver
论坛
›
Java
› JAVA 99乘法表实例
cookye
发表于 2015-05-29 09:33
JAVA 99乘法表实例
实例:public class Test{
public static void main(String[] args){
for(int i=1;i<=9;i++){
for(int j=1;j<=i;j++){
System.out.print(j+"*"+i+"="+j*i+"\t");
}
System.out.print("\n");
}
}
}运行结果:
页:
[1]
查看完整版本:
JAVA 99乘法表实例