Computer Science, asked by ksarpreet198, 4 months ago

rewrite the following loop using for loop
inter x=5
while(x! =10)
{
System.out.println("*") ;
x=x+1
}​

Answers

Answered by VedantJain
0

Answer:

for (int x = 5; x < 10; x++) {

 System.out.println("*");

}

Similar questions