PLEASE HELP.(C#)
I have:
int[] A = { 111,8,5,2,8,10,111};
//I need to create new array:
int[] B = { 111,8,5,2,10}; //Without repeate characters.
//(without using ready-made built-in methods like “Distinct()” and so on.
int[] A = { 111,8,5,2,8,10,111};
int[] B = new int [0];
int number = A[0];
for (int i = 0; i <= A.Length; i++)
{
if (number == A[i]).........(I am stuck.)
New contributor
rufus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.