The HomeWork of Ghina Latifah
Tuesday, November 22, 2016
Contoh Do While Loop
Kodenya
class DoWhileLoopExample {
public static void main(String args[]){
int i=10;
do{
System.out.println(i);
i--;
}while(i>1);
}
}
Hasilnya:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment