Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Chess_Square_Color
- {
- class Program
- {
- static void Main(string[] args)
- {
- string line = Console.ReadLine();
- int row = int.Parse(Console.ReadLine());
- if (line == "a" || line == "c" || line == "e" || line == "g")
- {
- if (row % 2 == 0)
- {
- Console.WriteLine("light");
- }
- else
- {
- Console.WriteLine("dark");
- }
- }
- else
- {
- if (row % 2 == 0)
- {
- Console.WriteLine("dark");
- }
- else
- {
- Console.WriteLine("light");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement