Why i can't use only one PRINTLN("*")

Scanner s = new Scanner(System.in);

	int n=s.nextInt();
	
	for(int row=1;row<=n;row++){
		System.out.println("*"); // work
		
	}

}

why i cant use only one println
and why i have to use 2 println

Hii Nipun,
Which pattern you want to print??

Hii Nipun,
In this pattern you can use only one println statement, but in other patterns where you have to print more than 1 star in a row then you have to use more than 1 print statement.

Hey Nipun,
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.