The correct option is
B 252CaseI When only one digit is 7
(i) When the ones place is 7
it can be done in 8×9×1ways=72ways
When only one digit is 7
(ii) When the tens place is 7
it can be done in 8×9×1ways=72ways
(ii) When the hundreds place is 7
it can be done in 9×9ways=81ways
Thus, when only one digit is 7, it can be done in 72+72+81=225ways
CaseII When two digits are 7
(i)when ones and tens place is 7, it can be done in 8 ways.
(ii)when hundreds and tens place is 7, it can be done in 9 ways.
(iii)when ones and hundreds place is 7, it can be done in 9 ways.
Total in 8+9+9=26 ways
CaseIII When all three digits are 7 only 1 is possible
Thus, total number of ways=225+26+1=252ways.