static void Main() { var number = decimal.Parse(Console.ReadLine()); var numberForReverse = new DecimalNumber(number); Console.WriteLine(numberForReverse.Reverse()); }
static void Main() { double n = double.Parse(Console.ReadLine()); DecimalNumber number = new DecimalNumber(n); Console.WriteLine(number.Reverse()); }