//Сортировка вставкамиvoid InsertMethod (int *mas,int n){ int temp; int j; for (int i=0;i<n;i++) { temp=mas[i]; j=i-1; while ((j>=0)&&(mas[j]>temp)) { mas[j+1]=mas[j]; j=j-1; mas[j+1]=temp; } }}