im just starting with If, else, true statements and im stuck.
# include <iostream>
# include <cmath>
# include <iomanip>
using namespace std;
int main()
{
int score, days;
bool Y = true;
cout <<"Enter an assignment score and type 'Y' if it was late: ";
cin >> score >> Y;
if (score > 100)
{
cout <<"Error: ";
}
if (score < 0)
{
cout <<"Error: ";
}
if (Y)
{
cout <<"\nHow many days was it late?: " << endl;
cin >> days;
}
system("pause");
return 0;
}
well its a succesful build but when it doesn let me type how many days it was late. It just skips to press any key to continue, am i missing something?