public class sz3 { public static void main(String []args) { int a[]=new int[]{1,2,3,4,5}; int b[]=new int[]{6,7,8,9,10}; int[] c=new int[5]; for(int i=0;i<b.length;i++){ c[i]=a[i]*b[i]; System.out.println("c["+i+"]="+c[i]); } System.out.println("c数组的长度是:"+c.length); } }