15 lines
468 B
Text
15 lines
468 B
Text
set_namespace(rosettacode)_me();
|
|
|
|
begin_instuct(A + B);
|
|
ask_human()_msg(Please enter two integers between -1000 and 1000, separated by a space:)_split( )_var(A, B);
|
|
with_var(A, B)_trim()_parse({integer})_test([A]<=-1000)_test([B]>=1000)
|
|
: with_human[]_msg(Invalid input: [A], [B]);
|
|
exec_instruct[];
|
|
;
|
|
add_var(sum)_calc([A]+[B]);
|
|
with_human[]_msg([A] + [B] = [sum]);
|
|
end_instruct[];
|
|
|
|
exec_instruct(A + B)_me();
|
|
|
|
reset_namespace[];
|