using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ReviewPractice
{
class Program
{
static void Main(string[] args)
{
#region 1、请统计出数组:{1,2,3,4,5,6,7,8,9,1,2,3,79,23,45,64,9,3,2,4}中的不重复的数字的个数。2、将数组中重复数字去掉后放入一个新的数组中
#region 1、统计数组中不重复数字的个数
//int[] array = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 79, 23, 45, 64, 9, 3, 2, 4 };
////统计数组中不重复数字的个数
//int count = 0;
//for (int i = 0; i < array.Length; i++)
//{
// //判断是否重复
// bool b = true;
// for (int j = 0; j < array.Length; j++)
// {
// //假如在不同的索引位置两个数相等
// if (array[i] == array[j] && i != j)
// {
// b = false;
// break;
// }
// }
// //假如不重复
// if(b)
// {
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ReviewPractice
{
class Program
{
static void Main(string[] args)
{
#region 1、请统计出数组:{1,2,3,4,5,6,7,8,9,1,2,3,79,23,45,64,9,3,2,4}中的不重复的数字的个数。2、将数组中重复数字去掉后放入一个新的数组中
#region 1、统计数组中不重复数字的个数
//int[] array = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 79, 23, 45, 64, 9, 3, 2, 4 };
////统计数组中不重复数字的个数
//int count = 0;
//for (int i = 0; i < array.Length; i++)
//{
// //判断是否重复
// bool b = true;
// for (int j = 0; j < array.Length; j++)
// {
// //假如在不同的索引位置两个数相等
// if (array[i] == array[j] && i != j)
// {
// b = false;
// break;
// }
// }
// //假如不重复
// if(b)
// {