using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication50
{
class Program
{
static void Main(string[] args)
{
int month;
double number;
Console.Title = ("机票优惠计算器");
Console.WriteLine("输入订的月份");
month = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("输入订的数量");
number = Convert.ToInt32(Console.ReadLine());
if (month >= 7 && month <= 9 && number < 20) Console.WriteLine("优惠5%");
if (month >= 7 && month <= 9 && number > 20) Console.WriteLine("优惠15%");
if (month >= 1 && month <= 5 && number > 20) Console.WriteLine("优惠30%");
if (month >= 1 && month <= 5 && number > 20) Console.WriteLine("优惠20%");
if (month == 10 && number > 20) Console.WriteLine("优惠30%");
if (month == 11 && number > 20) Console.WriteLine("优惠30%");
if (month == 6) Console.WriteLine("优惠10%");
if (month == 12) Console.WriteLine("优惠10%");
Console.Read();
}
}
}