home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Programming in Tcl & Tk (4th Edition)
/
TCLBOOK4.BIN
/
pc
/
exsource.old
/
8_1.tcl
< prev
next >
Wrap
Text File
|
2003-04-15
|
135b
|
12 lines
#
# Example 8-1
# Using arrays.
#
set arr(0) 1
for {set i 1} {$i <= 10} {incr i} {
set arr($i) [expr {$i * $arr([expr {$i-1}])}]
}