mirror of
https://github.com/dragonheim/gagent.git
synced 2025-02-22 23:59:54 -08:00
15 lines
193 B
Tcl
15 lines
193 B
Tcl
proc square {x} {
|
|
* $x $x
|
|
}
|
|
|
|
set a 1
|
|
while {<= $a 10} {
|
|
if {== $a 5} {
|
|
puts {Missing five!}
|
|
set a [+ $a 1]
|
|
continue
|
|
}
|
|
puts "I can compute that $a*$a = [square $a]"
|
|
set a [+ $a 1]
|
|
}
|
|
|