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