예제 #1
0
        public override double Solve(IArguments iArguments)
        {
            var arg = iArguments.ConvertToTwoArguments();

            if (arg.Second == 0)
            {
                throw new InputErrorException("выход запределы ОДЗ");
            }
            return(arg.First / arg.Second);
        }
예제 #2
0
        public override double Solve(IArguments iArguments)
        {
            var arg = iArguments.ConvertToTwoArguments();

            return(arg.First % arg.Second);
        }
예제 #3
0
        public override double Solve(IArguments iArguments)
        {
            var arg = iArguments.ConvertToTwoArguments();

            return(Math.Pow(arg.First, 1 / arg.Second));
        }