网站建设公司不赚钱,北京最好设计公司,静态网站 站内搜索,公司网站要备案吗任务描述 本关任务#xff1a;编写一个程序#xff0c;实现从键盘输入的三个整数#xff0c;输出三个整数的最大值。
编程要求 根据提示#xff0c;在右侧编辑器补充代码#xff0c;计算并输出从键盘输入的三个数的最大值。
测试说明 平台会对你编写的代码进行测试…任务描述 本关任务编写一个程序实现从键盘输入的三个整数输出三个整数的最大值。
编程要求 根据提示在右侧编辑器补充代码计算并输出从键盘输入的三个数的最大值。
测试说明 平台会对你编写的代码进行测试
测试输入 4 91 7 预期输出 最大值91
测试输入 151 100 75 预期输出 最大值151
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks; namespace ch403
{ class Program { static void Main(string[] args) { /******begin*******/ int a int.Parse(Console.ReadLine()); int b int.Parse(Console.ReadLine()); int c int.Parse(Console.ReadLine()); if(ba){ int max b; b a; a max; } if(bc){ int max b; b c; c max; } if(ac){ int max a; a c; c max; } Console.WriteLine(最大值{0},c); /*******end********/ } }
}