public static void main(String[] args) {
int[] data1={0,1,2,3,4,5};
int[] data2={0,1,2,3,4,5};
int jum,i,j;
//x=0;
System.out.println("+ 0 1 2 3 4 5");
System.out.println("-------------");
for (i=0;i<=5;i++)
{
//x=x+2;
System.out.print(" "+i);
for (j=0;j<=5;j++)
{
jum= data1[i]+data2[j];
System.out.print(" "+jum);
}
System.out.println(" ");
}
}
}
0 komentar:
Posting Komentar