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. for (int j = 1; j <= n; j++) {
  10.  
  11. cout << i << j;
  12.  
  13. }
  14. cout << "\n";
  15. }
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0s 544KB
stdin
6
stdout
111213141516
212223242526
313233343536
414243444546
515253545556
616263646566