This is a small TernaryCalc in console and c#