小编Bhu*_*tel的帖子

如何解决这个程序在 C# 中的错误?

namespace comparision
{
    class numbers
    {
        private static string comparision;

       
        static void Main(string[] args)
        {
            Console.WriteLine("Enter number a:");

            string a = Console.ReadLine();

            Console.WriteLine("Enter number b:");

            string b = Console.ReadLine();

            if a > b;
                Console.WriteLine("a is greater than b");
            else;
                Console.WriteLine("a is greater than b");

            return;
            
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

我做错了什么?

.net c#

-1
推荐指数
1
解决办法
117
查看次数

标签 统计

.net ×1

c# ×1