fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int i,j,rows;
  6. printf("enter no.of rows:");
  7. scanf("%d &rows");
  8. for(i=1;i<=rows;++i)
  9. {
  10. for(j=1;j<=i;++j)
  11. {
  12. printf("*");
  13. }
  14. printf("\n");
  15. }
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 4312KB
stdin
Standard input is empty
stdout
enter no.of rows: