I need to write a program that gives this as the output:
3.1
3.14
3.142
3.1416
3.14159
3.141593
Please help, this is due in about 30 minutes.
EDIT: I forgot to mention that I need to use setprecision and setw.
Last edited on
You must use setprecision etc in conjunction with std::fixed
Last edited on