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