Write a program that takes a number between -121 and 121


Program: Write a program that takes a number between -1 and 121 and output that number in the format of power of 3 (1,3,9,27)

example

13 = 9+3+1

30 = 27+3

25 = 27-3+1

Use any language preferably C++ language.

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a program that takes a number between -121 and 121
Reference No:- TGS0947064

Expected delivery within 24 Hours