Skip to content

Instantly share code, notes, and snippets.

@timsegraves
Created October 4, 2012 03:38
Show Gist options
  • Save timsegraves/3831334 to your computer and use it in GitHub Desktop.
Save timsegraves/3831334 to your computer and use it in GitHub Desktop.
Austin Reverse Diag
// 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();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment