题解思路

import java.util.Scanner;

public class Main{
    
    public static void main(String[] args){
        Scanner sin = new Scanner(System.in);
        
        while(sin.hasNext()){
            int con = sin.nextInt();
            for(int i = 0;i<con;i++){ // i小于输入的值,循环到此
                System.out.print("*");
            }
            System.out.println("");
        }
    }
}