예제 #1
0
    static void Main()
    {
        var number = decimal.Parse(Console.ReadLine());

        var numberForReverse = new DecimalNumber(number);

        Console.WriteLine(numberForReverse.Reverse());
    }
예제 #2
0
    static void Main()
    {
        double n = double.Parse(Console.ReadLine());

        DecimalNumber number = new DecimalNumber(n);

        Console.WriteLine(number.Reverse());
    }