public class ArrayMahasiswa {
public static void main(String[] args){
int loop=Integer.parseInt(JOptionPane.showInputDialog("Berapa Jumlah data ?"));
String[] npm = new String[loop];
String[] nama = new String[loop];
String[] alamat = new String[loop];
for(int i=0;i<loop;i++){
Selasa, 10 April 2012
Minggu, 08 April 2012
Fungsi Rekursif
Faktorial.java
public class soal_1 {
public int faktorial( int n )
{
if( n <= 0 )
return 1;
else
return n * faktorial( n - 1 );
}
}
public class soal_1 {
public int faktorial( int n )
{
if( n <= 0 )
return 1;
else
return n * faktorial( n - 1 );
}
}
Langganan:
Postingan (Atom)