Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int main() {
- int t = 1;
- for (int x = 1; x <= 50; ++x) {
- cout << "x = ";
- cout << setw(2) << x;
- cout << " t = " << setw(4) << t;
- cout << " ";
- for (int j = 1; j <= x; ++j) {
- cout << j;
- ++t;
- }
- cout << '\n';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement