CH02_02

2018-10-07  本文已影响0人  流光儿

加减乘除

namespace CH02_02
{
    class Program
    {
        static void Main(string[] args)
        {
            float a, b, s1,s2,s3,s4;
            a = 1;
            b = 2;
            s1 = a + b;
            s2 = a - b;
            s3 = a * b;
            s4 = a % b;
            Console.WriteLine("a+b={0},a-b={1},a*b={2},a%b={3}",s1,s2,s3,s4);
        }
    }
}
上一篇下一篇

猜你喜欢

热点阅读