[N
S S N
_Create_Label_LOOP][S S S N
_Push_0][S N
S _Duplicate_0][T N
T T _Read_STDIN_as_integer][T T T _Retrieve_input1][S N
S _Duplicate_input1][S N
S _Duplicate_input1][T N
T T _Read_STDIN_as_integer][T T T _Retrieve_input2][T N
S T _Print_input2_as_integer][S S S T S T S N
_Push_10][S N
S _Duplicate_10][T N
S S _Print_10_as_character][S N
T _Swap_top_two][T N
S T _Print_input1_as_integer][T N
S S _Print_10_as_character][N
S N
N
_Jump_to_Label_LOOP]
Letters S
(space), T
(tab), and N
(new-line) added as highlighting only.
[..._some_action]
added as explanation only.
Whitespace doesn't have lists, so I/O are newline delimited (strictly non-negative†) integers.
Try it online (with raw spaces, tabs and new-lines only).
Explanation in pseudo-code:
LOOP:
Integer a = STDIN as integer
Integer b = STDIN as integer
Print b as integer to STDOUT
Print '\n' as character to STDOUT
Print a as integer to STDOUT
Print '\n' as character to STDOUT
Go to next iteration of LOOP
This will stop with an error automatically when there are no more inputs.
†: For every second input it will use the input before it as heap-address ([SNS_Duplicate_input1][SNS_Duplicate_input1][TNTT_Read_STDIN_as_integer]
), so the inputs should be strictly non-negative, since negative heap addresses aren't allowed in Whitespace.
char[]
array in a language like C? If so, there is a certain built-in that would make the answer very short (s***
). \$\endgroup\$