Syntaq :
/**
*
* @author mwpripanggalih
*/
public /** class Bilangan10Sampai1DoWhile {
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
int i=10;
do{
System.out.println(i);
i--;
}while (i>=1);
}
}
Screenshot :
EmoticonEmoticon