Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int[] arr = new int[10];
- Random rnd = new Random();
- for (int i = 0; i < arr.Length; ++i)
- {
- arr[i] = rnd.Next(10);
- }
- int[] array = new int[11];
- for (int j = 0; j < array.Length; ++j)
- {
- array[j] = 0;
- }
- for (int x = 0; x < 10; ++x)
- {
- if (arr[x] == x)
- {
- array[x] += 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement