【Average_a】
[code]Inputs: AvgArray[size](NumericArrayRef), ArraySize(Numeric);Variables: var0(0), var1(0);
var0 = 0;
var1 = 0;
For value1 = 1 To ArraySize Begin
var0 = var0 + AvgArray[value1];
var1 = var1 + 1;
End;
If var1 <> 0 Then
Average_a = var0 / var1
Else
Average_a = -1;
[/code]
页:
[1]