Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int inputData = 3;
- int division = (inputData + 2) % 3;
- if (inputData < 3 || division == 1) {
- System.out.println("Зеленый");
- } else if (division == 2) {
- System.out.println("Желтый");
- } else if (division == 3) {
- System.out.println("Красный");
- } else {
- System.out.println("Хуйня какая-то");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement