c# - Index (zero based) must be greater than or equal to zero and less than the size of the argument list -
I get the error below when I try to call the remaining method. I am trying to list the account holder with the balance of their account. Any help would be great.
The index (zero based) should be less than or equal to the size of the logic list.
public zero balance (for (int x = 0; x & lt; 6; ++ x) if (x <5) {Console.WriteLine ("The name of the account holder is ===> {1} === & gt; {2}" a balance of ", account [x], accountable [x]); format logic index starting with 0 , Not 1. Try this:
Console.WrightLine ("Account Holders Name ===> {0} has a balance of ===> and <; 1}, account [x], accountable [x]);
Comments
Post a Comment