int[]a={3,4,5,6,7};
int[]b={1,2,3,4,5,6,7};
int[] arry=new int[7];
System.out.print("数组b[]={");
for(int i=0;i<5;i++)
{
b[i]=a[i]*b[i];
System.out.print(+b[i]+",");
}
System.out.print(b[5]+","+b[6]+"}");
时间: 2024-11-29 10:17:20
int[]a={3,4,5,6,7};
int[]b={1,2,3,4,5,6,7};
int[] arry=new int[7];
System.out.print("数组b[]={");
for(int i=0;i<5;i++)
{
b[i]=a[i]*b[i];
System.out.print(+b[i]+",");
}
System.out.print(b[5]+","+b[6]+"}");