求助关于ReadLine
using System;using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
const double PI = 3.14;
double R = Console.ReadLine();
double Area = R * R * PI;
double longth = 2 * R * PI;
Console.WriteLine("{0},{1}", Area, longth);
}
}
}
为什么 这个小程序中, double R=Console..ReadLine()会报错呢?