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.
- Prepare
- C++
- Introduction
- Basic Data Types
- Discussions
Basic Data Types
Basic Data Types
Sort by
recency
|
1549 Discussions
|
Please Login in order to post a comment
We have to add #inlude our code for using setpricion
include
using namespace std; int main() {
int a; long long b; char c; float d; double e; cin >> a >> b >> c >> d >> e;
cout << b << endl; cout << c << endl; cout << fixed << setprecision(3) << d << endl; cout << fixed << setprecision(9) << e << endl; return 0; }
Here is Basic Data types solution in c++ - https://programmingoneonone.com/hackerrank-basic-data-types-solution-in-cpp.html
include
include
using namespace std;
int main() { int a; long b; char c; float d; double e;
}