Triangle Rectangle U97442


Statement
 

pdf   zip

thehtml

Donat un nombre enter n, dibuixeu un triangle rectangle amb i angle recte a la dreta.

Entrada Un enter n entre 1 i 20.

Sortida Un triangle rectangle de n línies alineat a la dreta amb espais.

Public test cases
  • Input

    4
    

    Output

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

    1
    

    Output

    *
    
  • Input

    3
    

    Output

      *
     **
    ***
    
  • Information
    Author
    Language
    Catalan
    Official solutions
    Python
    User solutions