Program to remove duplicates in int array
<p>I have written some code to remove duplicates from Integer Array.
I dont want to use any inbuilt keywords/property.</p>

<p>Here is my logic :</p>

<pre><code>int[] iArray = {1,2,3,2,3,4,3};              
int t = 0;
int arraysize = iArray.Length;
for (int m = 0; m &lt; arraysize; m++)
{
    if (iArray[m] != iArray[t])
    {
        t++;
        iArray[t] = iArray[m];
    }
}
arraysize = t + 1;
for (int m = 0; m &lt; arraysize; m++)
{
    Console.WriteLine(iArray[m]);
}
</code></pre>

<p>Output should be: </p>

<blockquote>
  <p>1,2,3,4</p>
</blockquote>

<p>It does not give the desired output.
Guys, this is not the homewok.
This is Self Learning.
No LINQ,Contains keyword please.
Thank you for you replies.</p>

<p>Thanks.</p>
