编辑代码

using System;

public class HelloWorld
{
    public static void Main()
    {
        decimal dQty1 = 105.23m;
        decimal dPre1 = 10;

        int dResult = (int)(dQty1 / dPre1);
        int dRemain = (int)(dQty1 % dPre1);


        //JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
        Console.WriteLine("HELLO world!     - cs.jsrun.net ");
        Console.WriteLine("取整:" + dResult.ToString());
        Console.WriteLine("取余:" + dRemain.ToString());
    }
}