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]); } } }
时间: 2024-11-06 19:54:21