Advertisement
Deinio

Untitled

May 19th, 2022
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4. public static void main(String[] args) {
  5. Scanner Scanner = new Scanner(System.in);
  6. String label = Scanner.nextLine();
  7. int rank = Scanner.nextInt();
  8. if(rank % 2 == 0) {
  9. if (label.equals("b") || label.equals("d") || label.equals("f") || label.equals("h")) {
  10. System.out.println("dark");
  11. } else {
  12. System.out.println("light");
  13. }
  14.  
  15. }if (label.equals("b") || label.equals("d") || label.equals("f") || label.equals("h")) {
  16. System.out.println("light");
  17. } else {
  18. System.out.println("dark");}
  19.  
  20. }
  21. }
  22.  
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement