BC98 线段图案

思路:

step1:按要求输出*的个数;

代码如下:

while True:
    try:
        n = int(input())
        print('*' * n)
    except:
        break