fork(1) download
  1. #include <stdio.h>
  2. #include<stdio.h>
  3. main()
  4. {
  5. int i,j,n;
  6.  
  7. printf("Enter the numbers of rows:\n");
  8. scanf("%d",&n);
  9. for(i=1;i<=n;i++)
  10. {
  11. for(j=n;j<=i*n;j++)
  12. printf("a");
  13. printf("\n");
  14. }
  15. //getch();
  16. }
Runtime error #stdin #stdout 0s 2252KB
stdin
3
stdout
Enter the numbers of rows:
a
aaaa
aaaaaaa