Draw a rectangle
Submit solution
Points:
10 (partial)
Time limit:
1.0s
Memory limit:
64M
Authors:
Problem type
Allowed languages
Java 19, Java 8
題目說明
輸入兩個正整數,分別代表 length(高度)和 width(寬度)。輸出一個由 * 字元組成的長方形。
輸入
兩個正整數,以空白分隔。
輸出
一個由 * 字元組成的長方形。
sample input1
3 5sample output1
*****
*****
*****sample input2
1 1sample output2
*
Comments