0
java
Arrange the code to produce a valid finite loop which prints a text to the screen in the loop : while(x<100){ System.out.println("Java Rocks!") x++;} int x=12; answer please
3 Réponses
+ 1
Take int x = 12; to the top and it will be correct
+ 1
You have to first declare x variable so while loop can check condition. That is why int x = 12; should be on top
+ 1
okay thanks