[第3天] 程序的控制结构——循环嵌套例题05
2014-11-02 20:13
351 查看
【整理来源】黑马毕老师的java基础视频
例题:
----*
---* *
--* * *
_* * * *
* * * * *
例题:
----*
---* *
--* * *
_* * * *
* * * * *
<pre name="code" class="java">class ForForTest5 { public static void main(String[] args) { for(int x=0; x<5; x++)<span style="white-space:pre"> // { for(int y=x; y<5; y++)//尖向下 y=x { System.out.print("-"); } for(int z=0; z<=x; z++)<span style="white-space:pre"> </span> //* ,尖向上, { System.out.print("* "); } System.out.println(); } } }
相关文章推荐
- [第3天]程序的控制结构——循环例题03
- 第[3天]程序的控制结构——循环嵌套例题04(九九乘法表)
- [第3天]程序的控制结构——循环嵌套(扩展知识)
- 第[3天]程序的控制结构——循环嵌套例题02
- [第3天]程序的控制结构——循环例题01
- 第[3天]程序的控制结构——循环嵌套例题03
- 第[3天]程序的控制结构——循环嵌套例题01
- [第3天]程序的控制结构——循环例题02
- [第3天] 程序的控制结构——其他流程控制语句
- 循环控制结构程序05 - 零基础入门学习C语言20
- 【Python】05、python程序结构控制语句
- [第3天] 程序的控制结构 (循环)[while]、[do while]、[for]
- 循环控制结构程序05 - 零基础入门学习C语言20
- 实验与作业(Python)-05 程序的控制结构
- 黑马程序员——程序控制结构
- MATLAB基础5-MATLAB程序控制结构
- J2SE学习笔记之程序控制结构
- Oracle学习之三 程序控制结构
- [Matlab]基础教程学习笔记(二):程序控制结构
- 循环控制结构程序06 - 零基础入门学习C语言21