Advertisement
Guest User

Untitled

a guest
Dec 16th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. class Program
  2. {
  3. static void Main(string[] args)
  4. {
  5. bool a;
  6. int[] taba = { 2, 4, 3 };
  7. int[] tabb = { 1, 3};
  8.  
  9. if (taba[0] == tabb[0] || taba[taba.Length - 1] == tabb[tabb.Length - 1])
  10. {
  11. a = true;
  12. Console.WriteLine(CommonEnd(a));
  13. }
  14. else
  15. {
  16. a = false;
  17. Console.WriteLine(CommonEnd(a));
  18. }
  19. Console.ReadKey();
  20. }
  21.  
  22. static bool CommonEnd(bool a)
  23. {
  24. return a;
  25. }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement