fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5.  
  6. int i,temp;
  7. int line =5;
  8. for(i=0; i<line; i++){ //line line dolasan loop
  9. for(temp=0; temp<i+1; temp++){ //her bir ozel line'in napacagi
  10. printf("*");
  11. }
  12. printf("\n"); //ozel line bitti yeni satira gec
  13. }
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 2156KB
stdin
Standard input is empty
stdout
*
**
***
****
*****