- #1
ineedhelpnow
- 651
- 0
Write an expression that continues to bid until the user enters 'n'.
Sample program:
help me (Headbang) i tried nextBid<'n' nextBid != 'n' !(nextBid='n'). nothing works.
Sample program:
Code:
#include <iostream>
using namespace std;
int main() {
char keepGoing = '-';
int nextBid = 0;
srand(5);
while (<STUDENT CODE>) {
nextBid = nextBid + (rand()%10 + 1);
cout << "I'll bid $" << nextBid << "!" << endl;
cout << "Continue bidding? ";
cin >> keepGoing;
}
cout << endl;
return 0;
}
help me (Headbang) i tried nextBid<'n' nextBid != 'n' !(nextBid='n'). nothing works.