RosettaCodeData/Task/A+B/Relation/a+b.relation

5 lines
141 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
set input = "2 2"
set a = regexreplace(input,"^(-?\d+)\s+(-?\d+)+$","$1")
set b = regexreplace(input,"^(-?\d+)\s+(-?\d+)+$","$2")
echo a + b