I have tried many variations of code structure in C# to solve this problem but keep getting errors - can anyone help please?