fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int n;
  5. printf("Enter the number: \n");
  6. scanf("%d",&n);
  7. int a=1;
  8. for(int i=1;i<=n;i++){
  9.  
  10. for(int j=1;j<=n;j++){
  11.  
  12. printf("%d",a);
  13. a++;
  14.  
  15. }
  16. printf("\n");
  17.  
  18. }
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 5320KB
stdin
5
stdout
Enter the number: 
12345
678910
1112131415
1617181920
2122232425