美文网首页
A + B Problem

A + B Problem

作者: 尚恩_3295 | 来源:发表于2018-12-07 21:36 被阅读0次

Input
Each line will contain two integers A and B. Process to end of file.
Output
For each case, output A + B in one line.
Sample Input
1 1
Sample Output
2
问题链接:https://vjudge.net/problem/hdu-1000?tdsourcetag=s_pctim_aiomsg
问题简述:对多种情况的A+B进行加法运算
问题分析:
1.A+B
2.多种情况且不确定什么时候结束 采用while循环来输入多种可能的情况

程序说明:
程序如下:

#include<iostream>
using namespace std;
int main()
{
    int A, B;
    while (cin >> A >> B)
    {
        cout << A + B << endl;
    }
}

相关文章

  • ACM(eight)

    A + B Problem Too This problem is also a A + B problem,bu...

  • HDU 2101 A + B Problem Too

    Problem Description This problem is also a A + B problem,...

  • A + B Problem

    Description:Input and output are the same with problem 10...

  • A + B Problem

    输入多组数据,将输入作为判断的条件。 定义两个整型变量作为A,B,然后进行数学计算,输出两者之和。 https:/...

  • A + B Problem

    InputEach line will contain two integers A and B. Process...

  • A+B Problem too

    This problem is also a A + B problem,but it has a little ...

  • A + B Problem Too

    This problem is also a A + B problem,but it has a little ...

  • 8

    This problem is also a A + B problem,but it has a little ...

  • HDU - 2101 #A + B Problem Too

    This problem is also a A + B problem,but it has a little ...

  • A + B Problem II

    Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536...

网友评论

      本文标题:A + B Problem

      本文链接:https://www.haomeiwen.com/subject/kkgxhqtx.html