Trở về đầu
Mời các bạn download tại: Click here
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
double p = 3.14157;
double p2 = p;
cout << "p = " << p << endl;
cout << setw(20) << setprecision(3) << fixed << "p = " << p << ", p2 = " << p2 << endl;
cout << "p2 = " << p2 << endl;
cout << setprecision(4) << fixed << "p = " << p << endl;
cout << "p2 = " << p2 << endl;
}