RosettaCodeData/Task/Increment-a-numerical-string/Tcl/increment-a-numerical-string-2.tcl
2025-06-11 20:16:52 -04:00

6 lines
141 B
Tcl

# n has integer representation incremented
# n string rep updates when value changes
incr n 5
# n string rep used
puts stdout "n is now $n"