Inactive Tutor answered 10/29/20
Tutor
New to Wyzant
Using Java language, the simple code snippet follows:
String s="*";
while(s.length()<6){
System.out.println(s);
s+="*";
}
Jace T.
asked 10/29/20How do you make a simple code that will print using loops:
*
**
***
****
*****
Inactive Tutor answered 10/29/20
Using Java language, the simple code snippet follows:
String s="*";
while(s.length()<6){
System.out.println(s);
s+="*";
}
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.