
Alexander B. answered 10/29/20
Tutor
5
(7)
PhD in Engineering with 20 yrs of Programming Experience
Using Java language, the simple code snippet follows:
String s="*";
while(s.length()<6){
System.out.println(s);
s+="*";
}