"Triforce" By GGMethos (https://pastebin.com/u/GGMethos) URL: https://pastebin.com/u7HnxVq7 Created on: Friday 20th of September 2013 10:44:31 AM CDT Retrieved on: Monday 26 of October 2020 05:56:09 AM UTC >>36861886 #include const int SIZE = 30; const int WIDTH = SIZE*2; const int HEIGHT = SIZE; const int HLAF_HEIGHT = HEIGHT / 2; char screen[WIDTH*HEIGHT]; void Draw(int x, int y) { if (y >= HEIGHT || x >= WIDTH || x < 0) return; if (y == HLAF_HEIGHT && (x != HLAF_HEIGHT && x != (WIDTH-HLAF_HEIGHT))) return; screen[y*WIDTH+x] = 'Z'; Draw(x-1, y+1); Draw(x, y+1); Draw(x+1, y+1); } int main() { Draw(SIZE, 0); for (int y =0; y < SIZE; y++) { for (int x =0; x < WIDTH; x++) { std::putchar(screen[y*WIDTH+x]); } std::putchar('\n'); } }