We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
#include<iostream>#include<iomanip>usingnamespacestd;intmain(){/* Enter your code here. Read input from STDIN. Print output to STDOUT */intd;intlongld;charc;floatf;doublelf;cin>>d;cin>>ld;cin>>c;cin>>f;cin>>lf;cout<<d<<endl;cout<<ld<<endl;cout<<c<<endl;cout<<fixed<<setprecision(3)<<f<<endl;// using manipulatorscout<<fixed<<setprecision(9)<<lf<<endl;return0;}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Basic Data Types
You are viewing a single comment's thread. Return to all comments →
Improved C++ code;