Check out example codes for "C# metodas duomenu paemimui veiksmams ir grazinimui". It will help you in understanding the concepts better.

Code Example 1

static double TotalGroup(Money[] M, int n)
        {
            double sum = 0;
            for (int i = 0; i < n; i++)
            {
                sum = sum + Convert.ToDouble(M[i].GetMoney());
            }
            return sum / 100;
        }

Learn ReactJs, React Native from akashmittal.com