[ create a new paste ] login | about

Link: http://codepad.org/BM7VsMK3    [ raw code | output | fork ]

C, pasted on Jan 1:
1
2
3
4
5
6
7
8
9
#include <stdio.h>

int main(void)
{
  int i;
  for (i = 1; i <= 10; i++)
    printf("%.*s\n", i, "**********");
  return 0;
}


Output:
1
2
3
4
5
6
7
8
9
10
*
**
***
****
*****
******
*******
********
*********
**********


Create a new paste based on this one


Comments: