RosettaCodeData/Task/A+B/Potion/a+b.potion
2023-07-01 13:44:08 -04:00

13 lines
380 B
Text

# The numbers are entered, piped, or redirected in via STDIN and the format is proper (i.e., "%d %d").
input = read
i = 0
while (i < input length):
if (input(i) == " "):
break
.
i++
.
(input slice(0, i) number + input slice(i, nil) number) print
# The numbers are manually inputted, but the format is improper (i.e., "%d\n%d\n").
(read number + read number) print