码迷,mamicode.com
首页 > 其他好文 > 详细

除的类

时间:2017-04-11 00:54:30      阅读:133      评论:0      收藏:0      [点我收藏+]

标签:result   erb   nbsp   over   bsp   line   system   res   span   

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace jj4
{
   public class OperationDiv:Operation
    {
       public override double GetResult()
       {
            if(NumberB==0)
            {
                Console.WriteLine("不能为0");
            }
            double result = NumberA / NumberB;
               return result;
       }
    }
}

 

除的类

标签:result   erb   nbsp   over   bsp   line   system   res   span   

原文地址:http://www.cnblogs.com/nancheng/p/6691602.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!