Create a programcalled Break.java. Usinga while loop, prompt the user to enteran integer at most 10 times.
Fantastic news! We've Found the answer you've been seeking!
Question:
Create a programcalled Break.java. Usinga while loop, prompt the user to enteran integer at most 10 times. If the user enters -1, exit the loopusing a break statement. Count thenumber of times a user enters an integer (do not count times theyenter -1), and display the count once the loop exits.
In java please
Posted Date: