[ create a new paste ] login | about

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

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

int main(){
    size_t i,j;
    size_t height = 7;
    for(i = 0; i < height; i++ )
    {
        for(j = 0; j <= height; j++ )
        {
            if(j + 1 < height - i)
                printf("0");
            else
                printf("#");
        }
        printf("\n");
        
    }
    return 0;
}


Output:
1
2
3
4
5
6
7
000000##
00000###
0000####
000#####
00######
0#######
########


Create a new paste based on this one


Comments: