JAVA程序的问题
编写程序,输出
# #########
### #######
##### #####
####### ###
######### #
谢谢哦!
参考答案:public class LittlePrint {
public static void main(String args[]) {
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 11; j++) {
if (j == (2 * i + 1)) {
System.out.print(' ');
} else {
System.out.print('#');
}
}
System.out.println();
}
}
}