Question: Any number may be shown in powers of three by addition or subtraction of the numbers those powers represent.
For instance:
13 = \(3^{2}+3^{1}+3^{0}\)
14 = \(3^{3}-3^{2}-3^{1}-3^{0}\)
How will you prepare a program to get a number from the user and then demonstrate the output as the result above?
Be sure to include comments. Comments should be included in the program to explain your calculations and program.