1 2 3 4 5 6 7 8 9 10 11
# # See ../README.md # # # Run as: tclsh ch-1.tcl < input-file # while {[gets stdin num] >= 0} { puts [expr int (exp (log ($num) / 2))] }