fork download
  1. #include<stdio.h>
  2.  
  3. int main() {
  4.  
  5. // Make the initializations
  6. int num = 0; int N; // '0' has to be printed in form of right triangle
  7.  
  8.  
  9. scanf ("%d",&N);
  10. int i, j;
  11.  
  12. for (i = 1;
  13. i <= N;
  14. ({for (j = 1; j <= i; j++) putchar('0'); }), i++) {
  15. printf("\n");
  16. }
  17. printf("----No end of line");
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 3344KB
stdin
4
stdout
0
00
000
0000----No end of line