// Script function: return statement

// Unless named starting with GlobalSino, EM, My, Self, the function commands are defined 
//by Gatan DM, please see at link: http://www.globalsino.com/EM/page2597.html


Void GlobalSinoPower (number EMi, number EMNumber)
{
if(EMNumber<0) return; // Can't do negative square root

for( 0; EMi<10; EMi++) 
{
result ("The answer is: " + EMi*sqrt(EMNumber) + "\n")
}
}

number EMNumber
number EMi
GetNumber("Enter a number:", 4, EMNumber) // Input a number
GlobalSinoPower (EMi, EMNumber)
result ("\n")