Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner in = new Scanner(System.in);
- String letter = in.nextLine();
- int number = in.nextInt();
- if (number % 2 == 0)
- if (letter == "a" || letter == "c" || letter == "e" || letter == "g") {
- System.out.println("light");
- } else {
- System.out.println("dark");
- }
- if (number % 2 == 1)
- if (letter == "a" || letter == "c" || letter == "e" || letter == "g") {
- System.out.println("dark");
- } else {
- System.out.println("light");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement