Computer Science, asked by ashakakileti04, 11 months ago

Rewrite the following loop using for loop :-
while(true)
System.out.print("*");

Answers

Answered by dipjyotideb13
124

for(int i=2;i>1;i++)

System.out.print("*");

Answered by aqibkincsem
36

"for(int i=2;i>1;i++)

System.out.print(""*""); this is the following rewritten statements for the given question. We can change the statement using for loop and the statement will still work and give the appropriate output.

In PC programming, a circle is a grouping of guidance s that is ceaselessly rehashed until a specific condition is come to.

Normally, a specific procedure is done, for example, getting a thing of information and evolving it, and after that some condition is checked, for example, regardless of whether a counter has achieved an endorsed number"

Similar questions