|
Adding numbers in array
Hi Guys,
How can I workout the sum of money from an array:
accs[0] = new Account( "Name here2", 121, 510 ) ;
accs[1] = new Account( "Name here", 12, 50 ) ;
I want to add the last 2 numbers for both items together to workout the total.
|