Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int diff21(int n) {
- if(n > 21) {
- return 2 * (n - 21);
- }
- else {
- return 21 - n;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement