Complete the code to zip two integer arrays and print the pairs.
var numbers = new[] {1, 2, 3};
var words = new[] {"one", "two", "three"};
var zipped = numbers.[1](words, (n, w) => (n, w));
foreach (var (n, w) in zipped)
{
Console.WriteLine($"{n} - {w}");
}Complete the code to zip two lists and create a dictionary from the pairs.
var keys = new List<string> {"a", "b", "c"};
var values = new List<int> {1, 2, 3};
var dict = keys.[1](values, (k, v) => new { k, v })
.ToDictionary(x => x.k, x => x.v);Fix the error in the code to correctly zip two arrays and print the sum of pairs.
int[] arr1 = {1, 2, 3};
int[] arr2 = {4, 5, 6};
var result = arr1.[1](arr2, (x, y) => x + y);
foreach (var sum in result)
{
Console.WriteLine(sum);
}Fill both blanks to create a zipped list of tuples from two arrays and print them.
string[] fruits = {"apple", "banana", "cherry"};
int[] counts = {5, 3, 7};
var zipped = fruits.[1](counts, ([2] f, c) => (f, c));
foreach (var (f, c) in zipped)
{
Console.WriteLine($"{f} has {c} items");
}Fill all three blanks to zip two arrays, filter pairs where sum is greater than 5, and create a list of sums.
int[] a = {1, 3, 5};
int[] b = {2, 4, 6};
var sums = a.[1](b, (x, y) => x + y)
.Where(sum => sum [2] 5)
.ToList();
Console.WriteLine(sums.[3]());