[ create a new paste ] login | about

Link: http://codepad.org/gcxCasc9    [ 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 = 1;
    for(i = 0; i < height; i++ ) {
        printf("%.*s%.*s\n", height-i, zeros, i, hashes);
    }
    return 0;
}


Output:
1
0


Create a new paste based on this one


Comments: