Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <iomanip>
- using namespace std;
- int main()
- {
- cout << "+---------+----------+----------+" << endl << "| Brojevi | Kvadrati | Korijeni |" << endl << "+---------+----------+----------+" << endl;
- for(int j(1); j<=100; j++)
- {
- cout << "|" << setw(9) << left << j << "|" << setw(10) << right << j*j << "|" << setw(10) << right << setprecision(3) << fixed << sqrt(j) << "|" << endl;
- }
- cout << "+---------+----------+----------+" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement