eolymp
bolt
Try our new interface for solving problems
Problems

Triangle from +

Triangle from +

Given a positive integer $n$, print an image with $2 \cdot n - 1$ rows and $n$ columns, formed by space characters and the character \textbf{'<'}, as shown in the example. \includegraphics{https://static.eolymp.com/content/6q/6q379jfqqd5bdcc8jer9t30emg.jpg} \InputFile One positive integer $n\:(n > 1)$. \OutputFile Print the image $(2 \cdot n - 1) \cdot n$.
Time limit 1 second
Memory limit 256 MiB
Input example #1
5
Output example #1
    +
   ++
  + +
 +  +
+   +
 +  +
  + +
   ++
    +