public static void ThreeFlashlight(Flashlight[] arr, double total)
for (int i = 0; i < arr.Length - 2; i++)
for (int j = i + 1; j < arr.Length - 1; j++)
for (int d = j + 1; d < arr.Length; d++)
if (arr[i].GetPrice() + arr[j].GetPrice() + arr[d].GetPrice() == total)
Console.WriteLine(arr[i].GetModel() + "/" + arr[j].GetModel() + "/" + arr[d].GetModel());
public static void Main()
public Flashlight(string model, double price)