fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. int n;
  7. cin >> n;
  8. for (int i = 1; i <= n; i++) {
  9. cout << i;
  10. for (int j = 1; j <= n; j++) {
  11.  
  12. cout << j;
  13. }
  14.  
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0s 544KB
stdin
6
stdout
112345621234563123456412345651234566123456