void MyFunction( number x )
{

number EMSum=0; // initialize sum
number EMi, EMCount
for(EMi=1; EMi<=x; EMi++) 

{
EMSum = EMSum + EMi;
for(EMCount=0; EMCount<10; EMCount++)
result ("The current sum is " + EMSum + "\n")
}

}

number EMa = 3
MyFunction( EMa )

