rewrite the following loop using for loop
inter x=5
while(x! =10)
{
System.out.println("*") ;
x=x+1
}
Answers
Answered by
0
Answer:
for (int x = 5; x < 10; x++) {
System.out.println("*");
}
Similar questions