Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
using System.IO;
using System;
class Program
{
static void Main()
{
string[] province = new string[5]{"Kandal","Takeo","Kampot","KampongCham","Battambang"};
string[] crop = new string[4] {"Bean","Corn","Rice","Potato"};
//int a = province.Length;
double[,] paids = new double[5,4]{{200,300,400,100},
{300,500,400,800},
{400,200,400,200},
{900,300,500,300},
{500,400,200,400},
};
double total=0;
foreach(int ele in paids){total+=ele;}
Console.WriteLine(total);
Console.ReadKey();
}
}
Advertisements
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.
AcceptLearn more