Lucian_Adrian

Untitled

Sep 7th, 2021
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int n, i, j, k;
  8. cin >> n;
  9. for(i = 1; i <= n; ++i){
  10. for(j = 1; j <= i; ++j){
  11. for(k = 1; k <= i; ++k)
  12. cout << i;
  13. cout << endl;
  14. }
  15. }
  16. return 0;
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment