package SEMESTER3;
/**
*
* @author user
*/
public class While_Angka {
public static void main(String[] args){
int jumlah=1;
while(jumlah<=10){
System.out.print(jumlah+", ");
jumlah++;
}
}
}
run:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, BUILD SUCCESSFUL (total time: 0 seconds)
0 komentar:
Post a Comment