package javaapplication27;
public class DowhileLoop {
public static void main(String[] args) {
int n=10;
do{
System.out.println("Go"+n);
n--;
}while(n>0);
}
}
The output Is :
run:
Go10
Go9
Go8
Go7
Go6
Go5
Go4
Go3
Go2
Go1
0 comments:
Post a Comment