//Script.NET examples
//(c)2007-2009, Protsyk Petro, http://www.protsyk.com

a=[1,2,3,4];
s=0;
foreach(c in a)
{
 s+=c;
}