Can someone please explain how to get the surrounding integers for a given positive number ( for ex. if number is 1.23 then it should return 1 and 2 )
I actually need this to determine that the given number is between 0-1 or 2-3 or 4-5 and so on….
for loopif statement
Best Answer