Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int redTicket(int a, int b, int c) {
- if (a + b + c == 6) {
- return 10;
- }
- else if (a==b && b==c){
- return 5;
- }
- else if (a!=b && a!=c) {
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement