10 lines
291 B
Text
10 lines
291 B
Text
scope
|
|
local f := trim( io.read() ) split " "; # read a line and split into fields
|
|
try
|
|
local a := tonumber( f[ 1 ] );
|
|
local b := tonumber( f[ 2 ] );
|
|
print( a + b )
|
|
catch in ex then
|
|
print( "Unable to add the numbers: ", tostring( ex ) )
|
|
yrt
|
|
end
|