Debian Codegraph @

test/inftest.awk

raw
1 BEGIN {
2 k = 0
3 x = 100
4 # Added k limit test after finding some systems that didn't terminate
5 # the loop correctly, sigh...
6 do { k++; y = x ; x *= 1000; print x,y } while ( y < x && k < 1700)
7 print "loop terminated"
8 }