Computer Science, asked by akshun10, 11 months ago

while (true)

System.out.println("1");
rewrite the following using for loop

Answers

Answered by Anonymous
0

Answer:

for(int a=1,b=1;b<=a;b++;a++)

{

System.out.println(a);

System.out.println(b);

}

Explanation:

Answered by Anonymous
0

for( ; ; )

{

System.out.println("1");

}

#sumedhian ❤❤

Similar questions