Created
December 24, 2014 18:48
-
-
Save antirez/2298640095f972d1a6d0 to your computer and use it in GitHub Desktop.
Happy xmas!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int | |
main() | |
{int h=9, | |
d=0,x;while | |
(h--){for(x=0; | |
x<39;x++){int a=x | |
-6;if(a<0)a=-a;printf | |
("%c", (a <= d) ? '*':(( | |
float)rand()/RAND_MAX<(.3/(h | |
+1))?'.':' '));}printf("\n");d++;}} |
briceburg
commented
Dec 25, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment