Hey guys i need help i am trying to execute a do while loop and don't know how to do it properly and to stop the loop please help me
class Category{ public static void main(String[] args){ // Declare Variables int age, x = 1; int s=0; // User Input do { System.out.print("Enter your age : "); // Read Data age = Keyboard.readInt(); System.out.print(x); // Decisions if (age < 14){ System.out.print("You are in Category A ");} else if(age < 16){ System.out.print("You are in Category B ");} else if(age >= 16){ System.out.print("You are in Category C ");} else System.out.print(s); } while (x <=10); } }