replace these
sizeOfArray = Console.ReadLine();
convertedSizeArray = Int32.Parse(sizeOfArray);
with these :
while (true)
{
sizeOfArray = Console.ReadLine();
if (char.IsDigit(sizeOfArray.ToString(), 0))
if (int.Parse(sizeOfArray) > 1 && int.Parse(sizeOfArray) < 99)
{
break;
}
else
Console.WriteLine("Enter a digit between 1 to 99");
else
Console.WriteLine("Enter a digit between 1 to 99");
}