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

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

筛选

Manchester- A+B for Input-Output Practice (II)

摘要:解题思路:以要输入的次数n结束;输入一对整数,输出它们的和;注意事项:参考代码:#include<stdio.h> int main() {   int a,b,n;   scanf("%d"……

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

摘要:题目要求:第一行整数表示输入整数a和b的数量。您的任务是计算a+b解题思路:通过二维数组保存数据,利用循环求和参考代码:#include<stdio.h>int main(){    int a[2]……

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

摘要:解题思路:先输入有几个,再输入一项然后输出一项注意事项:输出有换行参考代码:#include<iostream> using namespace std; int main() { int ……

一个循环解决

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