解题思路:
注意事项:
参考代码:
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 人评分
C语言程序设计教程(第三版)课后习题6.5 (C++代码)浏览:458 |
有关字符,字符串的输入输出函数说明浏览:479 |
字符串输入输出函数 (C语言代码)浏览:2495 |
1118(求助_已解决)浏览:329 |
时间转换 (C语言代码)浏览:629 |
剪刀石头布 (C语言代码)浏览:1436 |
C语言程序设计教程(第三版)课后习题7.4 (C语言代码)浏览:492 |
A+B for Input-Output Practice (I) (C语言代码)浏览:574 |
【计算球体积】 (C语言代码)浏览:1552 |
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:615 |