8 lines
209 B
Text
8 lines
209 B
Text
repeat
|
|
input "Enter two numbers (betwen -1000 ... +1000): " a, b
|
|
until(valid(a) and valid(b))
|
|
print "\nThe sum of ", a, " and ", b, " is: ", a + b
|
|
|
|
sub valid(x)
|
|
return x >= -1000 and x <= 1000
|
|
end sub
|