Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- #include <iomanip>
- #include <math.h>
- using namespace std;
- int main()
- {
- double x = sqrt(2);
- for (int i = 1; i <= 20; i++)
- {
- cout << right << setw(21) << setprecision(i) << x << endl;
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement