Try
static void Main(string[] args)
{
int[] ar = new int[] { 1, 0, 2 };
Polynomial p = new Polynomial(3, ar);
Console.WriteLine(p);
}
with
public override string ToString()
{
string s = string.Empty;
for (int i = 0; i < intCoefficents.Length; i++)
{
if (intCoefficents[i] != 0)
if ( s == string.Empty)
s = string.Format("{0}x^{1}", intCoefficents[i], i);
else
s = string.Format("{0}x^{1} + ", intCoefficents[i], i) + " " + s;
}
if (s == string.Empty)
s = "0";
return s;
}