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. for(int i=1;i<=n;i++){
  8. for(int j=1;j<=n;j++){
  9. int a=1;
  10. printf("%d",a);
  11. a++;
  12. }
  13. printf("\n");
  14. }
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5276KB
stdin
5
stdout
Enter the number: 
11111
11111
11111
11111
11111