[ create a new paste ] login | about

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

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

int main()
{
    int i,j;
    for(i=1;i<=5;i++)
    {
        for(j=5;j>=i;j--)
        {
            printf("*");
        }
        printf("\n");
    }
    return 0;
}


Output:
1
2
3
4
5
*****
****
***
**
*


Create a new paste based on this one


Comments: