pp6.7 stars/a
来源:互联网 发布:速卖通数据分析 编辑:程序博客网 时间:2024/04/30 02:38
package qsy;
public class stars1
{
public static void main(String[] args)
{
int row,star;final int MAX_ROWS=10;
row=1;
while(row<=MAX_ROWS)
{star=10;
while(star>=row)
{System.out.print("*");
star--;}
System.out.println() ;
row++;
}
}
}
//注意star=10得写在while循环里面,否则不能每次初始化为10!!!
0 0
- pp6.7 stars/a
- pp6.7/starsb
- 7stars
- aeiou(pp6.9)
- CPP_Basic_Code_P6.1-PP6.11.9
- stars
- Stars
- Stars
- Stars
- Stars
- Stars
- Stars
- Stars
- stars
- Stars
- Stars
- stars
- Stars
- 利用mmc_test.c研究mmc模块
- 判断输入值与随机数是否相同
- java的IO处理
- Saiku去掉登录模块(默认不跳转登陆页面而是跳转主页面)
- java自带线程池和队列详细讲解
- pp6.7 stars/a
- Ubuntu+eclipse+Struts2.x开发平台搭建方法
- 并发编程之Operation Queue和GCD
- c18
- 收藏的一个linux下proxy实现的源码
- Galaxy Tab S 8.4/10.5 Root 教程 + Recovery
- eclipse中文字体大小修改,让中英文字体协调
- sql合并字段
- RHEL 6.4 安装 cx_Oracle