public static void Main()
Console.WriteLine("Input number of words and delivery type:");
numOfWords = Convert.ToInt32(Console.ReadLine());
deltype = Convert.ToChar(Console.ReadLine());
if (numOfWords > 0 && numOfWords <= 12) {
if (deltype == 'S' || deltype == 's')
else if (numOfWords > 12)
int exceedword = numOfWords - 12;
if (deltype == 'S' || deltype == 's')
charge = 18.50 + (exceedword * 1.50) + 5;
charge = 18.50 + (exceedword * 1.50);
Console.WriteLine("Input Error!");
Console.WriteLine("The charge amount is:" + charge);