basic data types in c 2b 2b hackerrank solution

Solutions on MaxInterview for basic data types in c 2b 2b hackerrank solution by the best coders in the world

showing results for - "basic data types in c 2b 2b hackerrank solution"
Oscar
19 Apr 2016
1#include <iostream>
2using std::cin;
3using std::cout;
4using std::endl;
5using std::fixed;
6
7int main() {
8    int a; long b; char c; float d; double e;
9    cin>>a>>b>>c>>d>>e;
10    cout<<a<<endl;
11    cout<<b<<endl;
12    cout<<c<<endl;
13    cout.precision(3);
14    cout<<fixed<<d<<endl;
15    cout.precision(9);
16    cout<<fixed<<e<<endl;
17    return 0;
18}