class Program
{
static void Main(string[] args)
{
readonly int distance;
readonly double price;
public Ticket()
{
Console.WriteLine ("请输入车该车所行驶的距离(公里g):");
int g=int.Parse(Console.ReadLine ());
this.distance=g;
if(g>0&&g<=100)
{
price=g;
}
else if(g>100&&g<=200)
{
price=g*0.95;
}
else if(g>200&&g<=300)
{
price=g*0.90;
}
else if(g>300)
{
price=g*0.80;
}
}
Console.WriteLine("车费为:{0}",price);
}
}