' Collection of code snippets by Arne Vajhøj ' posted to eksperten.dk, usenet and other places (2002-now) v = 60 v2 = v b = 1 while v2 > 0 if v2 mod 2 = 1 then wscript.echo b end if b = 2*b v2 = v2 \ 2 wend