count number
Hi, im beginner in c# and now im writing prog, that write 200 numbers from 1-50.I have to use arrays. Here is my code:int[] talan = new int[200];
Random slembi = new Random();
for(int x=0;x<talan.Length;x++)
{
talan[x] = slembi.Next(1,50);
ctr++;
Console.WriteLine("Tala numer {0} er {1} ",ctr,talan[x]);
}
My q is how i can after the loop ask prog how many times like 4 or any other number came up and so on? Hope someone can help me.
Thx
geiri