I have a small task within my script that I need to handle and i'm really not sure how I should go about doing it.
The function takes an integer and I need to find upper and lower bounds that the integer lies between.
The upper and lower bounds will always be 5 numbers apart. For example, if the inputted integer is 4 then the lower bound would be 0 and the upper bound would be 5.
Another example would be if the inputted integer is 26, the lower bound would be 25 and the upper bound would be 30.
Could anyone give me some starting information as to what would be a good way to go about tackling this? I'm thinking that I could just find the lower bound and then add 5 to it in order to find the upper bound? I'm just not entirely certain what would be the most efficient way to find one bound.
0and5and not1and6or2and7or ...25, do you want[20, 25]or[25, 30]?