為什么不可以
using System;
using System.Collections.Generic;
using System.Text;
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);
? ? ? ? }
? ? }
}
2018-05-04
我在vs上是可以運(yùn)行的
2018-06-16
? double avg=sum/2;
這一行的等號兩邊加空格。好像是格式。