if (windspeed <= -40 && windspeed <= 40) {
windchill = calculate(temp, windspeed);
output(temp, windspeed, windchill);
}
else
cout << "Error, please enter a number between -40 and 40 for temperature";
I need to check to make sure a number, windspeed, is between -40 and 40. Can I do this with an if statement?