RosettaCodeData/Task/Increment-a-numerical-string/Tcl/increment-a-numerical-string-2.tcl

7 lines
141 B
Tcl
Raw Permalink Normal View History

2025-06-11 20:16:52 -04:00
# 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"