1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <iostream> #include <iomanip> using namespace std; int main() { double x; cout << "Nhap x: "; cin >> x; float f = x; cout << setprecision(9) << f << endl; return 0; }
1
Nhap x: 0