Rewrite the following using for loop:
while (true)
System.out.println("*);
Answers
Answered by
11
for(;;;)
System.out.println("*");
it is an infinite loop since there is no intialization and condition is always true
Answered by
5
Answer:
for (int i=2;i>1;i++)
System.out.println("*")
hope that helps you. please mark it brainlist.
Similar questions