Embercode
✕
Pattern PrintingCoding problems

Pattern Printing: coding problems

Write a program that reads the input and prints the answer. Run checks it against every test, including hidden ones.

0 of 7 solved

  • A sign painter needs a plain rectangle of stars for a shop window. Print a rectangle with the number of rows and columns you read from the input. Every row must be the same width, and no line may end with a space.

    Input. One line with two integers rows and cols. 1 <= rows, cols <= 50.

    Output. rows lines, each with cols stars (*) and nothing else.

    Example 1 input

    3 6
    

    Output

    ******
    ******
    ******
    

    Example 2 input

    1 1
    

    Output

    *