qse/ase/test/awk/t2.awk

25 lines
204 B
Awk
Raw Normal View History

global z, x;
function sum (i)
{
local k, y;
y = 0;
for (k = i; k; k = k - 1)
{
y = y + k;
}
return y;
y = 10;
return y;
}
END {
/*x = sum (10000000);
*/
x = sum (100);
s = x;
ss = z;
}