Skip to content

Instantly share code, notes, and snippets.

@worksofliam
Created June 17, 2017 20:26
Show Gist options
  • Save worksofliam/3bffa99960fe3b2f3f298349b4c7330b to your computer and use it in GitHub Desktop.
Save worksofliam/3bffa99960fe3b2f3f298349b4c7330b to your computer and use it in GitHub Desktop.
class expRange
{
public int _low;
public int _high;
public expRange(int low, int high)
{
_low = low;
_high = high;
}
public bool inRange(int num)
{
return (num >= _high);
}
public int getVal()
{
return (_high - _low) + 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment