[ create a new paste ] login | about

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

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

const char hashes[] = "########################";
const char zeros[]  = "000000000000000000000000";


int main(){
    size_t i,j;
    size_t height = 7;
    for(i = 0; i < height; i++ ) {
        printf("%.*s%.*s\n", height-i, zeros, i, hashes);
    }
    return 0;
}


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


Create a new paste based on this one


Comments: