Squares (1) P24080


Statement
 

pdf   zip

html

Write a program that prints squares with n2 n’s.

Input

Input consists of several natural numbers between 1 and 9.

Output

For every n, print a square of size n × n full of n’s. Separate two squares with an empty line.

Public test cases
  • Input

    3
    1
    6
    

    Output

    333
    333
    333
    
    1
    
    666666
    666666
    666666
    666666
    666666
    666666
    
  • Input

    
            
                                

    Output

    
            
                                
  • Input

    5
    

    Output

    55555
    55555
    55555
    55555
    55555
    
  • Information
    Author
    Salvador Roura
    Language
    English
    Translator
    Carlos Molina
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++ Java Pascal Python
    User solutions
    C C++ Java Lua Python