Skip to content

Instantly share code, notes, and snippets.

@timsegraves
Created October 4, 2012 03:38
Show Gist options
  • Select an option

  • Save timsegraves/3831334 to your computer and use it in GitHub Desktop.

Select an option

Save timsegraves/3831334 to your computer and use it in GitHub Desktop.

Revisions

  1. timsegraves created this gist Oct 4, 2012.
    15 changes: 15 additions & 0 deletions gistfile1.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    // Reverse Diagonal
    for (int i = 0; i < space; i++){
    System.out.print(num + " ");
    num++;

    for(int j = 0; j < space; j++){
    if (j + i == 5) {
    System.out.print(" *");
    }
    else {
    System.out.print(" ");
    }
    }
    System.out.println();
    }