Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- namespace IntersectionOfArrays
- {
- class Program
- {
- static void Main(string[] args)
- {
- int[] numbers = new int[] { 1, 2, 3 };
- int[] secondNumbers = new int[] { 1, 4, 5 };
- var element = numbers.Intersect(secondNumbers);
- foreach (var item in element)
- {
- Console.WriteLine(item);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement