You are viewing a single comment's thread. Return to all comments →
#include <iostream> #include <iomanip> using namespace std; int main() { int i; long l; char c; float f; double d; cin >> i >> l >> c >> f >> d; cout << i << endl; cout << l << endl; cout << c << endl; cout << fixed << setprecision(3) << f << endl; cout << fixed << setprecision(9) << d << endl; return 0; }
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 →