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