Site icon Tutor Bin

Iowa State University Java Programming Code

Iowa State University Java Programming Code

Description

Prints a pattern of <code>2*n</code> rows containing slashes, dashes and
* backslashes as illustrated below.
* <p>
* When {@code n <= 0 }, prints nothing.
* <p>
* <code>n = 1</code>
*
* <pre>
* /
* /
* </pre>
* <p>
* <code>n = 2</code>
*
* <pre>
* –/
* -/
* -/
* /–
* </pre>
* <p>
* <code>n = 3</code>
*
* <pre>
* —-/
* —/
* –/
* –/
* -/–
* /—-
* </pre>
*
* @param n number of rows in the output

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Exit mobile version