do {

// Code

// if (input == 1)
// end = true;

}
while (!end);