首页 > TAG信息列表 > ForDemo05
用for打印一个三角形
package com.qiqi.struce;public class ForDemo05 { public static void main(String[] args) { for (int i = 1; i <= 5; i++) { for (int j = 5; j >=i ; j--) { System.out.print(" "); } for用for打印一个三角形
package com.qiqi.struce;public class ForDemo05 { public static void main(String[] args) { for (int i = 1; i <= 5; i++) { for (int j = 5; j >=i ; j--) { System.out.print(" "); } for