Skip to content

Instantly share code, notes, and snippets.

@issess
Created October 27, 2013 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save issess/7187867 to your computer and use it in GitHub Desktop.
Save issess/7187867 to your computer and use it in GitHub Desktop.
* * * * * * * * * * * * ** ** * * * * * * * * * * * * 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