Hi Guys
Thanks so much for the help you all have been great and I learned a few new ways to do things. I did manage to figure out that I shouldn't be using a foreach loop and had changed the code as below:
I know it's still not "correct" or best practice... but I'm learning. thanks again all.
namespace ConsoleApplication5
{
class Program
{
static void mx(int[] numbers)
{
for (int i = 0; i < numbers.Length; i++)
{
int num = numbers[i];
num = num * 5;
Console.WriteLine(num);
}
}
static void Main()
{
int[] numbers = new int[10] {1,2,3,4,5,6,7,8,9,10};
Program.mx(numbers);
Console.ReadLine();
}
}
}