Hi all, I'm still very new to C#, and right now I have a project, where I am creating a program.
What I need to do is declare three arrays namely A1, A2, and A3 each of size k.
Assign random values to array A1.
I want to write a C# program in microsoft visual studio 2005 using arrays and function to implement the following:
A2 (0) = A1 (k), A2 (1) = A1 (k-1), and so on….
A3 (k) = A1(k) if A1(k)>A2(k),
= A2 (k) otherwise
Output all the elements of arrays A1, A2 and A3
Please if you could help me, would be much appreciated.
Many thanks
Adam
What I need to do is declare three arrays namely A1, A2, and A3 each of size k.
Assign random values to array A1.
I want to write a C# program in microsoft visual studio 2005 using arrays and function to implement the following:
A2 (0) = A1 (k), A2 (1) = A1 (k-1), and so on….
A3 (k) = A1(k) if A1(k)>A2(k),
= A2 (k) otherwise
Output all the elements of arrays A1, A2 and A3
Please if you could help me, would be much appreciated.
Many thanks
Adam