import javax.swing.JOptionPane;
public class array{
public static void main(String[]args){
int rais[][]= new int[4][5];
int k=30;
String hasil="";
for (int i=0;i<4;i++){
for (int j=0;j<5;j++){
rais[i][j]=k-- ;
}
}
for (int i=0;i<4;i++){
for (int j=0;j<5;j++){
hasil +=(rais[i][j]+" ");
}
hasil +="\n";
}
JOptionPane.showMessageDialog (null, hasil);
System.exit(0);
}
}
Rabu, 09 Juni 2010
Langganan:
Posting Komentar (Atom)
0 komentar:
:14 :15 :16 :17
:18 :19 :20 :21
:22 :23 :24 :25
:26 :27 :28 :29
:30 :31 :32 :33
:34 :35 :36 :37
:38 :39 :40 :41
:42 :43 :44 :45
Posting Komentar