I have problem in the following C# program. there is no error when a code it but when I debug it put an exception that index is out of the range of array bound.
What is the problem here?
using System;
class secmain
{
public static void squarearg(int i)
{
int m=i*i;
Console.WriteLine("The Square of the argument is {0}",m);
}
static void Main(String[] param)
{
Console.WriteLine("this program will convert your string argument to int and display the square of the numbe");
int k = Int32.Parse(param[0]);
squarearg(k);
}
}