大家来做码农

Contributor:游客20791413 Type:代码 Date time:2017-06-12 16:02:30 Favorite:16 Score:0
返回上页 Report
请选择举报理由:




Collection Modify the typo
public class flowDemo {
public static void main(String[] arges){
int iPara1,iPara2,iEnd;
if(arges.length!=3)
{
System.out.println("USE :java flowDome parameter1 parameter2 circle");
System.out.println("parameter1 : 比较条件1,数字类型");
System.out.println("parameter2 : 比较条件2,数字类型");
System.out.println("circle :循环次数");
System.out.println("ego:java flowDome 1 2 5");
return;
}else{
iPara1 = Integer.parseInt(arges[0]);
iPara2 = Integer.parseInt(arges[1]);
iEnd = Integer.parseInt(arges[2]);
}
//if语句
if(iPara2>iPara1)
{
System.out.println("if 条件满足!");
System.out.println("第2个数比第1个数大!");
}
else
{
System.out.println("if 条件不满足!");
System.out.println("第2个数比第1个数小!");
}
//for循环操作
for(int i=0;i<iEnd;i++)
{
System.out.println("这是for 第"+i+"次循环");
}
//while循环操作
int i=0;
while(i<iEnd)
{
System.out.println("这是while 第"+i+"次循环");
i++;
}
//do-while循环操作
int j=0;
do
{
System.out.println("这是do-while 第"+j+"次循环");
j++;
}while(j<iEnd);
}
}
声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。
Hot degree:
Difficulty:
quality:
Description: the system according to the heat, the difficulty, the quality of automatic certification, the certification of the article will be involved in typing!

This paper typing ranking TOP20

登录后可见

用户更多文章推荐