bolt
Try our new interface for solving problems
Problems

# Sum of real numbers

published at 5/3/21, 9:09:03 pm

# include <cmath>

using namespace std;

int main () {

string x, y, z;

cin >> x >> y >> z;

cout << fixed << setprecision (4) << stof(x) +stof(y) << " " << stof(x) +stof(z) << " " << stof(y) +stof(z);

}

published at 7/27/22, 11:41:35 pm

# include<bits/stdc++.h>

using namespace std; int main(){ long double x,y,z; cin>>x>>y>>z; cout<<setprecision(4)<<fixed<<x+y<<" "<<x+z<<" "<<z+y; }

published at 1/11/23, 4:36:36 pm

# include<bits/stdc++.h>

using namespace std; int main(){ long double x,y,z; cin>>x>>y>>z; cout<<setprecision(4)<<fixed<<x+y<<" "<<x+z<<" "<<z+y; return 0; }

published at 3/13/23, 8:46:16 pm

# include <iostream>

using namespace std; int main() { float x,y,z; cin>>x>>y>>z; cout<<x+y<<" "<<x+z<<" "<<y+z<<" "<<endl; return 0; }

published at 3/17/23, 7:02:50 am

# include<bits/stdc++.h>

using namespace std; int main(){ long double x,y,z; cin>>x>>y>>z; cout<<setprecision(4)<<fixed<<x+y<<" "<<x+z<<" "<<z+y; return 0; }

published at 11/6/23, 9:32:10 am

import math a,b,c=map(float,input().split()) print(round(a+b,4),round(a+c,4),round(b+c,4))