fork download
  1. #include <stdio.h>
  2.  
  3. void printAsterisks(int n);
  4.  
  5. int main(void) {
  6. int i;
  7. for( i=1; i<=9; i++){
  8. printAsterisks(i);
  9. }
  10. return 0;
  11. }
  12.  
  13. void printAsterisks(int n){
  14. int i;
  15.  
  16. for( i=1; i<=n; i++) printf("*");
  17. printf("\n");
  18. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
*
**
***
****
*****
******
*******
********
*********