三个数比较大小

 Console.WriteLine("请输入三个数");
            int a, b, c,jg;
            a = Convert.ToInt32(Console.ReadLine());
            b = Convert.ToInt32(Console.ReadLine());
            c = Convert.ToInt32(Console.ReadLine());
            if (a>b&&a>c)
            {
                jg=a;
            }
            else if(b>a&&b>c)
            {
            jg=b;
            }
            else
            {
            jg=c;
            }
            Console.WriteLine("最大数是"+jg);
           

原文地址:https://www.cnblogs.com/shitouge/p/4307561.html