Just as have binary numbers base 2 which can contain only


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

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Just as have binary numbers base 2 which can contain only
Reference No:- TGS02511923

Now Priced at $10 (50% Discount)

Recommended (91%)

Rated (4.3/5)