decided to add this but no improvement although i knew it wouldn't fix it, just the app wont close
Code:
#include <iostream>
#include <limits>
using namespace std;
int main();
int number=9;
int guess;
cout << "What day is my birthday on (Between 1 and 31)";
cout << "Enter your guess, please?";
cin >> guess;
{
if(guess == number)
{
cout << "Incredible, you are correct!" << endl;
}
else if(guess < number && guess > 0)
{
cout << "Your guess is too low" << endl;
}
else if(guess > number && guess < 32)
{
cout << "Your guess was too high" << endl;
}
else
{
cout << "You either entered a number below 1, above 31 or a decimal. Incorrect, please try again" << endl;
}
cin.ignore();
cin.get();
return 0;
}
plz