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