below is my what i hve done so far....the problem is when both min.degree and max.degree is true, the output will display the one condition(e.g in minNum<0) and both conditions(e.g (minNum < 0) && (maxNum > 360).
how can i make it displaying the both conditions only?
[tag]
Code:
else if (minNum < 0)
{
cout << "\n * Min.degree must be greater than 0" << endl;
cout << "\n * Please restart the program" <<endl;
}
else if (maxNum > 360)
{
cout << "\n * Max.Number should not be more than 360" << endl;
cout << "\n * Please restart the program" <<endl;
}
else if ((minNum < 0) && (maxNum > 360))
{
cout << "\n * Min.degree must be greater than 0" << endl;
cout << "\n * Max.Number should not be more than 360" << endl;
cout << "\n * Please restart the program" <<endl;
}
[/tag]