Created
October 4, 2012 03:38
-
-
Save timsegraves/3831334 to your computer and use it in GitHub Desktop.
Austin Reverse Diag
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
// 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