DatabricksOA #10
Star Frame n×n
估计简单可在线判题
考点(AI 标注)字符串
Given a positive integer n, output n identical lines; each line contains n asterisks, with exactly one space between adjacent asterisks.
Standard input/output and this site's supplementary ranges follow this problem's description.
输入格式
One line containing an integer n, 1≤n≤100.
输出格式
Output exactly n lines; each line contains n asterisks, with one space between adjacent asterisks.
样例 1
输入:
2
输出:
* *
* *
样例 2
输入:
5
输出:
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
样例 3
输入:
8
输出:
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *