码迷,mamicode.com
首页 > 其他好文 > 详细

A+B 1

时间:2020-01-29 12:50:54      阅读:66      评论:0      收藏:0      [点我收藏+]

标签:number   clu   包含   title   bsp   namespace   string   meta   users   

数据包含多组输入,每行输入两个数字A,B

   每一行数据输出 A + B 

   

1 1
2 3

2
5

#include<iostream> using namespace std; int main() {技术图片 int a,b; while(cin>>a>>b) { cout<<a+b<<endl; } return 0; }

 

 

A+B 1

标签:number   clu   包含   title   bsp   namespace   string   meta   users   

原文地址:https://www.cnblogs.com/heroin1/p/12239884.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!