level 10
怎么样才能用数组来编写出能打印出来字符三角形图的?
图形就是这样的:
A
BBB
CCCCC
DDDDDDD
谢谢各位啦~~~~~~~
2011年07月20日 05点07分
1
level 7
public class Second{
public static void main(String args[]){
for(int i = 0; i < 4; i++){
for(int j = 0; j < 2*i+1; j++){
System.out.print((char)('A'+i));
}
System.out.println("\n");
}
}
}
2011年07月25日 13点07分
5