aboutsummaryrefslogtreecommitdiff
path: root/challenge-133/abigail/tcl/ch-1.tcl
blob: 2f06c4e8b69aa3e7c539c181d9a3416a9148ab82 (plain)
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))]
}