# Looping with for
# While x is less than 11 print out the value of x
for {set x 1} {$x < 11} {incr x} {
puts "x = $x"
}

#x = 1
#x = 2
#x = 3
#x = 4
#x = 5
#x = 6
#x = 7
#x = 8
#x = 9
#x = 10