How to compare if the variable is between two values, for example: variable punctuation
when it is between 0 to 20
int min = 0;
int max = 20;
int someValue;
if (someValue >= min && someValue <= max)
{
// someValue is between min and max
}
How to compare if the variable is between two values, for example: variable punctuation
when it is between 0 to 20
int min = 0;
int max = 20;
int someValue;
if (someValue >= min && someValue <= max)
{
// someValue is between min and max
}