public class Stars {
public static void main(String[] args) {
/输出图形
123456*
123456
123456
123456
123456
123456
/
// for(int i=1;i<=6;i++) {
// for(int j=1;j<=6;j++) {
// System.out.print(j);
// System.out.print("“);
// }
// System.out.println();
// }
/输出图形
123456*
23456* //当i自增到2时,j=i=2,j从2开始自增,自增到6结束
3456
456*
56
6*
/
// for(int i=1;i<=6;i++) {
// for(int j=i;j<=6;j++) {
// System.out.print(j);
// System.out.print("”
java实现——输出不同形状星星
于 2018-12-30 14:25:58 首次发布