首页 > 学院 > 开发设计 > 正文

A+B (II)

2019-11-10 18:56:09
字体:
来源:转载
供稿:网友

Your task is to Calculate a + b.InputThere are multiple test cases. Each test case contains only one line. Each line consists of a pair of real number a and b(0<=a,b<=1000000), separated by a space.OutputFor each case, output the answer in one line rounded to 4 digits after the decimal point.Sample Input1 510 200.1 1.5Sample Output6.000030.00001.6000

#include <iostream>#include <iomanip>using namespace std;int main(){	double m,n;    while(cin>>m>>n)        cout<<fixed<<setPRecision(4)<<m+n<<endl;    return 0;}


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表