[Solved] how to call more than one element of array [closed]


using C#:

1234 = 1*1000 + 2*100 + 3*10 + 4*1

double result = 0;
int ex = 3; // Math.Pow(10,3) = 1000.00
for(int i = 0; i < 4 0; i++)
{
    result += a[i] * Math.Pow(10, ex);
    ex--;
}

result += 15;

5

solved how to call more than one element of array [closed]