Sunday, February 18, 2024

basic command

 

ADDITION:

set x 5

set y 10

expr $x + $y

set z [ expr $x + $y]

puts "sum=$z"

output:

15

sum=15


LOOP:

set i 0

while{$i <10}{

puts $i

set i [ expr $i + 1]

}


No comments:

Post a Comment