while (condition) statement; int menuvar=0; while(menuvar<9) { // display menu text // enter menuvar (choice) // act on that choice (switch) }