//最⼤值:输⼊三个整数,求这个三个数中最⼤值的平⽅
            int a = Convert.ToInt32(Console.ReadLine());
            int b = Convert.ToInt32(Console.ReadLine());
            int c = Convert.ToInt32(Console.ReadLine());
            int max = a;
            if (b > max)
            {
                max = b;
            }
            if (c > max)
            {
                max = c;
            }
            Console.WriteLine(c * c);
按照教程输出,不管怎么样,只会输出最后一组数据的平方。
老师代码如图: