Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Program
- {
- static void Main(string[] args)
- {
- bool a;
- int[] taba = { 2, 4, 3 };
- int[] tabb = { 1, 3};
- if (taba[0] == tabb[0] || taba[taba.Length - 1] == tabb[tabb.Length - 1])
- {
- a = true;
- Console.WriteLine(CommonEnd(a));
- }
- else
- {
- a = false;
- Console.WriteLine(CommonEnd(a));
- }
- Console.ReadKey();
- }
- static bool CommonEnd(bool a)
- {
- return a;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement