Originally posted by M_Ghani
sorry Kasun but i think you should make the following
because input means only two elements not three in the array but u needed here three elements of the array inputCode:int input;
"The first element in the array is the 0th element, and the last element is the (n-1th) element, where n is the size of the array."
- MSDN, Arrays.
So, input means actually 3 elements - 0, 1 and 2.