HackerRank C++ Input and Output
Read 3 numbers from stdin and print their sum to stdout.
- #include <cmath>
- #include <cstdio>
- #include <vector>
- #include <iostream>
- #include <algorithm>
- using namespace std;
-
- int main()
- {
- long double a,b,c,sum=0;
-
- cin>>a>>b>>c;
-
- sum=a+b+c;
-
- cout<<sum;
-
- return 0;
- }