Created
October 27, 2013 21:04
* * * * * * * * * * * * ** ** * * * * * * * * * * * * daum devon 2013 code golf diamond
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
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