First line is made with ceil(n/2)
elements where each element is: <space><odd-number><space>
Second line is made with ceil(n/2)
elements, but each element is / \
only.
You may assume n >= 0
and n <= 10
.
Examples
Input: 3
1 3
/ \/ \
Input: 10
1 3 5 7 9
/ \/ \/ \/ \/ \
Example in Python 3, 103 bytes:
lambda a:print("".join([" "+str(i)+" "for i in range(1,a+1,2)]+["\n"]+["/ \\"for i in range(1,a+1,2)]))
Shortest code in bytes wins :)
<space><odd-number><space>
, but the test cases don't have a space after the last odd number. Is it optional? Also, is the output forn=0
two empty lines? \$\endgroup\$