Script :
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package while1.pkg10;
/**
*
* @author dery
*/
public class While110 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
int i=1;
while (i<=10)
{
System.out.println(i);
i++;
}
}
}
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package while1.pkg10;
/**
*
* @author dery
*/
public class While110 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
int i=1;
while (i<=10)
{
System.out.println(i);
i++;
}
}
}
Maka hasilnya :
Sekian postingan saya tentang Cara Menampilkan Bilangan 1-10 dengan While pada Java dan semoga bermanfaat...
JIKA ANDA INGIN MENDOWNLOAD PROGRAM TINGGAL KLIK LINK

Tidak ada komentar:
Posting Komentar
Jika Anda ingin bertanya silahkan berkomentar dengan sopan gan dan JANGAN PASANG LINK DI KOMENTAR....