Помогите не могу понять как решить проблемы с программой
using System;
using ArrayLib;
namespace SlijanieArr
{
class Program
{
static void Main(string[] args)
{
int[] a = { 1, 3, 77, 7, 9 };
int[] b = { 2, 4, 10, 11, 12 };
int[] c = new int[a.Length + b.Length];
Console.WriteLine("Masssiv A\n");
MyArray.CheckArray(a);
MyArray.ShakeSort(a);
MyArray.PrintArray(a);
Console.WriteLine("Masssiv B\n");
MyArray.CheckArray(b);
MyArray.ShakeSort(b);
MyArray.PrintArray(b);
for (int i = 0; i < c.Length; i++)
{
if (i < a.Length) c = a;
else c = b[i - a.Length];
}
for (int i = 0; i < c.Length; i++)
{
Console.Write("{0,3}", c);
}
Console.ReadKey();
}
}
}
Vot moi kod s kotorqm u menja vozniklo 2 problemq :
1, Kak sdelat 4to bq sortirovka bqla tolko dlja ne uporjado4ennogo massiva?
2, Kak sdelat tak 4to bq massivq objedinjalis po porjadku?