package javaapplication27;
public class WhileloopDemo {
public static void main(String[] args) {
int n=10;
while(n>0){
System.out.println("go"+n);
n--;
}
}
}
The output is :
run:
go10
go9
go8
go7
go6
go5
go4
go3
go2
go1
0 comments:
Post a Comment