c# check how many numbers between 2 ints
public static int getNumberBetween(int number1, int number2)
{
int numberBetween = 0;
if(number1 > number2)
{
numberBetween = number1 - number2;
}
else
{
numberBetween = number2 - number1;
}
return numberBetween;
}