题解 1086: A+B for Input-Output Practice (II)

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

一个循环解决

摘要:Scanner scanner=new Scanner(System.in); int n=scanner.nextInt(); for (int i = 1; i <=n; i++) { ……

数组加for循环

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n,i,k=0;    int a,b,c[100];    scanf("%d",&n);   ……