if ((2.00<a) && (a>500.00))
{
cout << "Calculation for a Pentagonal Pyramid" << endl;
cout << "Edge length " << fixed << setprecision(2) << a <<endl;
}
else
{
cout << "Error - edge length out of range"<< endl;
}
cout << "\n";
break;
I have some question how to get range number between 2 and 5. The output must be get with decimal point number. but it is still show error whatever I put it there.