Get into Tcl/Tk

Tcl is a general purpose programming language used to develop a wide-range of applcations while Tk is GUI toolkit used for developing desktop applications.

example.tclexample.tcl
1
2
3
4
5
6
7
8
proc power {base p} {
set result 1
while {$p > 0} {
set result [expr $result * $base]
set p [expr $p - 1]
}
return $result
}
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×