![]() |
Setting Boundaries on Input for Numbers
I already turned in this code, but was trying to figure out for myself:
Code:
{ |
Re: Setting Boundaries on Input for Numbers
Use multiple tests, so if you want to check if an input number is odd and between 32 and 45:
Code:
if ((inputNum%1) && (inputNum>=32) && (inputNum<=45)) |
| All times are GMT +5.5. The time now is 15:40. |