Created
August 6, 2017 12:34
-
-
Save kimki1124/a02beae6c1ac539aa41cbd6d6be55aa1 to your computer and use it in GitHub Desktop.
This file contains 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
public static int bestPractice(int n) { | |
return (n != 0 && n%9 == 0) ? 9 : n % 9; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment