RosettaCodeData/Task/Babbage-problem/Tcl/babbage-problem-1.tcl

3 lines
99 B
Tcl
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
for {set i 1} {![string match *269696 [expr $i*$i]]} {incr i} {}
puts "$i squared is [expr $i*$i]"