qse/ase/test/awk/t1.awk

21 lines
197 B
Awk
Raw Normal View History

2006-04-19 04:18:43 +00:00
function sum(i, k, y)
{
y = 0;
for (k = i; k; k = k - 1)
{
y = y + k;
}
return y;
y = 10;
return y;
}
BEGIN {
2006-04-25 15:20:10 +00:00
/*s = sum(10000000);*/
2006-04-19 04:18:43 +00:00
s = sum (100);
}
2006-05-10 16:02:39 +00:00