Answer the question
In order to leave comments, you need to log in
How to remake looping java code?
package test;
public class Test {
public static void main(String[] args) {
int count = 10;
int i = 0;
while (i < count) {
int k = 0;
while (k < i+1) {
System.out.print("*");
k++;
}
System.out.println();
i++;
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question