Something
public cpp v1 · immutable cout << endl << "Press Y to enter another nth or press N to quit" << endl; cin >> another; cout << endl; if (another == 'Y' || 'y') l=1; else return 0; cout << endl << "Press Y to enter another nth or press N to quit" << endl; cin >> another; cout << endl; if (another == 'Y' || 'y') l=1; else return 0;