// Dealing cards during a card game cout << "Do you want another card?" << endl; cin >> reply; while( 'y' == reply ) { nextCard = rand() % 13 + 1; cout << "Your next card is " << nextCard << endl; cout << "Do you want another card?" << endl; cin >> reply; }