how many 4 - digit numbers are there such that all 3 digits are different and the first digit and last digit is not zero ?
all three digits are different and first digit is not zero . so first digit can be filled in 8 ways . and , second digit can be filled in 9 ways . and , third digit can be filled in 9 ways . and , fourth digit can be filled in 8 ways . total ways = 8 * 9 * 9 * 8 = 5184 hence option ( d ) .
multiply(power(subtract(const_10, const_1), divide(4, const_2)), power(subtract(subtract(const_10, const_1), const_1), divide(4, const_2)))