Rhombus P72484


Statement
 

pdf   zip

thehtml

Write a program such that, given a number n, prints a “rhombus of size n”.

Input

Input consists of a natural number n ≥ 1.

Output

Print 2*n − 1 lines, as shown in the examples.

Public test cases
  • Input

    4
    

    Output

       *
      ***
     *****
    *******
     *****
      ***
       *
    
  • Input

    7
    

    Output

          *
         ***
        *****
       *******
      *********
     ***********
    *************
     ***********
      *********
       *******
        *****
         ***
          *
    
  • Information
    Author
    Salvador Roura
    Language
    English
    Translator
    Salvador Roura
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++ Java Python
    User solutions
    C C++ Java PHP Python