package hanqi; import java.util.Scanner; public class Test7 { public static void main(String[] args) { int a[]={3,4,5,6,7};
int b[]={1,2,3,4,5,6,7};
for(int i=0;i<5 ;i++)
{
b[i]=a[i]*b[i];
System.out.println("b["+i+"]="+b[i]);
} } }
2021-09-07 00:20:51
package hanqi; import java.util.Scanner; public class Test7 { public static void main(String[] args) { int a[]={3,4,5,6,7};
int b[]={1,2,3,4,5,6,7};
for(int i=0;i<5 ;i++)
{
b[i]=a[i]*b[i];
System.out.println("b["+i+"]="+b[i]);
} } }