If x and y are integars and x > y > 0, how many integars are there between, but not including x and y?
- x-y
- x+y
- X-y-1
- X+y-1
- X-y+1
If x and y are integars and x > y > 0, how many integars are there between, but not including x and y?
Answer: x-y-1
When we subtract x-y it includes x thus we need to subtract 1 from the answer. It is similar to inclusive counting.
Additionally assuming values would also do:
Take an example: Say x=6 & y=3;
There are only 2 Integers between 6 & 3 i.e. 5,4.
Answer by formula
6-3-1 = 2