/* sierpinski0.c - Don Yang (uguu.org) 01/07/07 */ #include int main(void) { int cell[79]; int x, y, left, current; for(x = 0; x < 79; cell[x++] = (x == 34)); for(y = 0; y < 32; y++) { for(x = left = 0; x < 78; x++) { current = cell[x]; cell[x] = left ^ cell[x + 1]; putchar(" A"[left = current]); } putchar('\n'); } return 0; }