double x = 13.9, y = 24.4;
double sum = x + y;
double avg=sum/2;
Console.WriteLine(avg);
为什么网页能提交,但是复制到vs里面就有很多错误?
运行这个程序来学习,真是YYDS!
namespace test { class Program { static void Main(string[] args) { double x = 13.9, y = 24.4; double sum = x + y; double avg = sum / 2; Console.WriteLine(avg); Console.ReadKey(); } } }
我的输出:19.15,没有错误,你看看哪里没弄好