Create decimal to ternary program