Make a zigzag pattern 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-&gt;
   /
  /
 /
/
\
 \
  \
   \
   /
  /
 /
/
\
 \
  \
   \
2-&gt;
 /
/
\
 \
0-&gt;
1-&gt;
/
8-&gt;
       /
      /
     /
    /
   /
  /
 /
/
\
 \
  \
   \
    \
     \
      \
       \
       /
      /
     /
    /
   /
  /
 /
/
\
 \
  \
   \
    \
     \
      \
       \
       /
      /
     /
    /
   /
  /
 /
/
\
 \
  \
   \
    \
     \
      \
       \
       /
      /
     /
    /
   /
  /
 /
/
\
 \
  \
   \
    \
     \
      \
       \
Charcoal, 16 10 9 bytes

ＦＮ«↖Ｉθ→‖Ｔ


Try it online! Link is to verbose version of code.