**(i)** There will be as many ways as there are ways of filling 3 vacant places

in succession by the given five digits. In the case, repetition of digits is allowed. Therefore, the units place can be filled in by any of the given five digits.Similarly, tens and hundreds digits can be filled in by any of the given five digits.

Thus, by the multiplication principle, the number of ways in which three-digit numbers can be formed from the given digits is 5 x 5 x 5 = 125

**(ii)** In this case, repetition of digits is not allowed. Here, if unit place is filled in first, then it can be filled by any of the given five digits. Therefore, the number of ways of filling the units place of the three-digit number is 5.

Then, the tens place can be filled with any of the remaining four digits and the hundreds place can be filled with any of the remaining three digits.

Thus, by the multiplication principle, the number of ways in which three-digit numbers can be formed without repeating the given digits is 5 x 4 x 3 = 60