#include#include#includeusing namespace std;int main(){ int num = ((rand() % 100) + 1); //make a random number between 1 and 100 int tries = 0; int guess; do { cout<<"enter a number between 1 and 100"; cin>> guess; tries++; if(guess > num) cout<<"thats too high\n\n"; if(guess < num) cout<<"thats too low\n\n"; }while(guess != num); cout<<"you got it in"<}
and i hope my show comes on tonight.
in case you've noticed that you're guessing the same number every time, this is why