Answers for "c# check how many numbers between 2 ints"

C#
1

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;
    }
Posted by: Guest on June-14-2021

Code answers related to "c# check how many numbers between 2 ints"

C# Answers by Framework

Browse Popular Code Answers by Language