#include #include #include "Trinary.h" using namespace std; int main() { string num1; string num2; string sum; int a, b, c; cout << "Enter the first number in base 3: "; cin >> num1; cout << "Enter the second number in base 3: "; cin >> num2; a = TrinaryToInt(num1); b = TrinaryToInt(num2); c = a+b; sum = IntToTrinary(c); cout << num1 << " + " << num1 << " = " << sum << endl; return 0; }