if语句分析

liupeng19881028 2009-07-10 09:48:52
public class Ling {
public static void main(String[] args) {
int intClos = 0 ;
int intRow ;
for(intRow=1;intRow<=7;intRow++){
if(intRow<=4)
intClos=intRow*2-1;
else
if((intRow>=5)&&(intRow<=7))
intClos=15-intRow*2;
int Space =(7-intClos)/2;
for(int i=1;i<=Space;i++)
System.out.println("");
for(int j=1;j<=intClos;j++)
{
System.out.println("*");
}
System.out.println();
}

}

}
...全文
48 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhaodalong 2009-07-10
  • 打赏
  • 举报
回复
有点乱,最好加{}

23,404

社区成员

发帖
与我相关
我的任务
社区描述
Java 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧