Sha256: 7a0679f4117ebbe13cc7512b86c6a941155f7c3a78d8592c7e4f43940f247cd9
Contents?: true
Size: 547 Bytes
Versions: 10
Compression:
Stored size: 547 Bytes
Contents
# Arithmetic/Integer, in LIL write "Enter two numbers separated by space: " if {[canread]} {set line [readline]} print set a [index $line 0] set b [index $line 1] print "A is $a"", B is $b" print "Sum A + B is [expr $a + $b]" print "Difference A - B is [expr $a - $b]" print "Product A * B is [expr $a * $b]" print "Integer Quotient A \\ B is [expr $a \ $b], truncates toward zero" print "Remainder A % B is [expr $a % $b], sign follows first operand" print "LIL has no exponentiation expression operator"
Version data entries
10 entries across 7 versions & 1 rubygems