≈佐

—— 有恒则成。

统计

最新评论

java循环示例代码集锦--for循环 Three.

public class XingHaoThree
{
    
public static void main(String[] args)
    {
        
for(int i=10;i>0;i--)
        {
            
for(int j=i;j>1;j--)
            {
                System.out.print(
"*");
            }
        System.out.println(
"");
        }
    }
}

/* 
此图是运行结果: 

********** 
********* 
******** 
******* 
****** 
***** 
**** 
*** 
** 


*/ 

posted on 2008-12-25 23:55 ≈佐 阅读(62) 评论(0)  编辑  收藏 所属分类: J2SE练习册