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;}
新闻热点
疑难解答