Diamond Pattern
A Diamond pattern with 1 row contains 2 lines. The first line contains a forward slash followed by a backslash. The second line contains a backslash followed by a forward slash. For example,
\/
\\/
A Diamond pattern with 2 rows is made up of 3 lines and is formatted as shown below. The first line contains a space followed by a forward slash, a backslash, and a space. The second line contains 2 pairs of forward slash/backslash characters and the third line contains 2 pairs of backslash/forward slash characters.
\/ \\ \/ \\
\\ \\ \\ \\
A Diamond pattern with 3 rows is made up of 4 lines and is formatted as shown below. The first line contains 2 spaces followed by a forward slash, a backslash, and 2 spaces. The second line contains 1 space followed by a forward slash, backslash, forward slash, backslash, and 1 space. The third line contains 3 pairs of forward slash/backslash characters and the fourth line contains 3 pairs of backslash/forward slash characters.
\/ \\
\/ \\ \/ \\
\\ \\ \\ \\ \\ \\