while,do while循环结构
2016-10-25 16:54
120 查看
class Demo13
{
public static void main (String[] args)
{ int a=1;
while (a<=5) //while
{
System.out.println("hello world!") ;
a++;//++就是加1
}
}
}
class Demo13
{
public static void main (String[] args)
{
int b =1;
do{
System.out.println("hello world!");
b++;
}
while(b<=5);
}
}
{
public static void main (String[] args)
{ int a=1;
while (a<=5) //while
{
System.out.println("hello world!") ;
a++;//++就是加1
}
}
}
class Demo13
{
public static void main (String[] args)
{
int b =1;
do{
System.out.println("hello world!");
b++;
}
while(b<=5);
}
}
相关文章推荐
- 黑马程序员_java编程基础第3天1-5 循环结构while;do while;for
- .NET入门(九)测试各种循环结构,for,while和do while
- 第三讲 :● 循环结构 for , while, do while
- 循环结构一(while,do while)
- for、while、do while循环结构
- [第3天] 程序的控制结构 (循环)[while]、[do while]、[for]
- java学习10--循环结构while、do while
- 语句-循环结构while和do while
- 黑马程序员_java编程基础第3天1-5 循环结构while;do while;for
- (8)循环结构:while,do while,for
- .NET入门(九)测试各种循环结构,for,while和do while
- .NET入门(九)测试各种循环结构,for,while和do while
- 随机数 while循环 do while循环 for循环
- 水晶报表-控制结构-While 循环(Crystal 语法)
- MATLAB循环结构:while语句P69范数待编
- C语言之while循环语句和do while循环语句、for循环语句、循环嵌套
- 第五 Java循环结构之while循环
- while,do while和for循环语句的用法
- JAVA流程控制循环结构(while和do{}while()循环结构)
- Oracle:PL/SQL--流程控制(三)——循环结构:loop、while-loop、for-loop