package Online_Code_Samples.Week2; public class WhileLoop { public static void main(String[] args) { int count = 2; //initialization System.out.println("Output"); while(count <= 30) { //condition System.out.println("The count is: " + count); //statement(s) count += 2; //increment } } } //Write a do-while code that collects user input, it prints the //user input except the input is "quit", "QUIT", "Quit", "qUIT"; //Hint: You need a scanner