RosettaCodeData/Task/A+B/Agena/a+b.agena
2025-08-11 18:05:26 -07:00

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