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