Skip to content

Instantly share code, notes, and snippets.

@issess

issess/gist:7187867

Created Oct 27, 2013
Embed
What would you like to do?
* * * * * * * * * * * * ** ** * * * * * * * * * * * * daum devon 2013 code golf diamond
for(i=-9;i++<9;){for(j=-9;j++<9;){k=Math.abs(i)+Math.abs(j);if(k==6||(k==7&&(i==0||j==0)))print'*'else print' '};print'\n'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment