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