# Java 7, <s>49</s> 48 bytes

<!-- language-all: lang-java -->

    int c(int a,int b){return-~a!=b?a*c(a+1,b):a*b;}

[*corsiKa*'s answer is exclusive](https://codegolf.stackexchange.com/a/66332/52210), mine is inclusive (and slightly shorter by using recursion instead of a loop).

**Explanation:**

[Try it here.](https://tio.run/##hc2xDoIwEMbxnac4txZbAiqLxPgETozG4VqIKUIhtJAYgq9eaXQVl2@5X/5X4Yi87UpdFQ8nazQGLqj0FAAYi1ZJp7QFSfwi8yvo1Jd26DV/4eYkzhhKgtuECXrEUGSzA@gGUSv5DcDYqgKaJUpy2yt9v94AqX8AkD@NLZuoHWzULSdbayLJjkFKafYbpAySeFXwA4P9qoj/AZ/gyYfMweze)

    int c(int a,int b){  // Method with two integer parameters and integer return-type
      return-~a!=b?      //  If `a+1` is not equal to `b`
             a*c(a+1,b)  //   Return `a` multiplied by the recursive call with `a+1,b`
            :            //  Else:
             a*b;        //   Return `a*b`
    }                    // End of method