for {set n 1;set a 0} {$a<10} {incr n} {if {![expr $n$n%22-11]} {incr a};puts "N=$n,A=$a"}