25
2
Your task is to take in one integer input and print a zigzag pattern using slashes and backslashes.
- The integer input determines the length of each zig and zag, as well as the number of zigs and zags
- The pattern always starts from right to left
Test Cases
4->
/
/
/
/
\
\
\
\
/
/
/
/
\
\
\
\
2->
/
/
\
\
0->
1->
/
8->
/
/
/
/
/
/
/
/
\
\
\
\
\
\
\
\
/
/
/
/
/
/
/
/
\
\
\
\
\
\
\
\
/
/
/
/
/
/
/
/
\
\
\
\
\
\
\
\
/
/
/
/
/
/
/
/
\
\
\
\
\
\
\
\
3Can we output an array/list of strings for each line? Are training or leading newlines or spaces allowed? – Shaggy – 2017-09-21T23:50:26.563
2Is leading whitespace okay as long as the pattern is unaffected? – Emigna – 2017-09-22T08:10:48.170