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