[ create a new paste ] login | about

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

C, pasted on Jan 11:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>

int main()
{
   int x;
   for ( x = 0; x < 3; x++)
    {
    int y;
        for ( y = 0; y < x; y++)
        {
            printf("*");
            printf("\n");
        }
    }
    return 0;
}


Output:
1
2
3
*
*
*


Create a new paste based on this one


Comments: