解题思路:
注意事项:
参考代码:
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int[][] a=new int[10][2];
int count1=0;
int count2=0;
for(int i=0;i<10;i++) {
a[i][0]=scanner.nextInt();
count1+=a[i][0];
a[i][1]=scanner.nextInt();
count2+=a[i][1];
}
System.out.print(count1+"+"+count2+"i");
}
}
0.0分
0 人评分