Need help with this code!
"Just as have binary numbers (base 2) which can contain only 0s and 1s we can also have base 3 numbers. These numbers can only contain 0s 1s and 2s. Given a number n by the user output if its a valid base 3 number. "
Sample input 1:
Please enter n: 10021
10021 is a valid base 3 number