Advertisement
myloyo

3.4.11

Nov 1st, 2022 (edited)
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int main()
  5. {
  6.     for (int i = 1; i <= 5; ++i, cout << endl) {
  7.         for (int j = 1; j <= i; j += 1) {
  8.             cout << j << "\t";
  9.         }
  10.     }
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement