Example #1
0
        static void Main(string[] args)
        {
            decimal       n             = decimal.Parse(Console.ReadLine());
            DecimalNumber decimalNumber = new DecimalNumber(n);

            Console.WriteLine(decimalNumber.ReversedNumber());
        }
        public static void Main()
        {
            var decimalNumberAsStr = Console.ReadLine();
            var decimalNumber      = new DecimalNumber(decimalNumberAsStr);
            var reversedDecimalNum = decimalNumber.ReverseNumber(decimalNumberAsStr);

            Console.WriteLine(reversedDecimalNum);
        }
Example #3
0
        static void Main(string[] args)
        {
            string number = Console.ReadLine();

            DecimalNumber transformer = new DecimalNumber();

            Console.WriteLine(transformer.ReverseOrder(number));
        }