题目1000:计算a+b

问题来源

  http://ac.jobdu.com/problem.php?pid=1000

问题描述

  简单a+b测试,没什么限制,入门级题目。

问题分析

  使用scanf、printf或者cin、cout都可以呀!

参考代码

//
// Created by AlvinZH on 2017/4/24.
// Copyright (c) AlvinZH. All rights reserved.
//

#include <iostream>
using namespace std;

int main() {
    int a,b;
    while(cin>>a>>b)
    {
        cout << a+b << endl;
    }
    return 0;
}

作者: AlvinZH

出处: http://www.cnblogs.com/AlvinZH/

本人Github:https://github.com/Pacsiy/JobDu

本文版权归作者AlvinZH和博客园所有,欢迎转载和商用,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利.

原文地址:https://www.cnblogs.com/AlvinZH/p/6759724.html