using System.Collections.Generic;
using System.Threading.Tasks;
static void Main(string[] args)
getValidInt("Input Length: ", "Error: Not an Integer", out length);
getValidInt("Input Width: ", "Error: Not An Integer", out width);
int price = findLawnPrice(width, length);
Console.WriteLine($"The weekly mowing fee is {price:C}");
Console.WriteLine($"The total fee is {price * 20:C}");
static void getValidInt(String inputMessage, String errorMessage, out int value)
Console.Write(inputMessage);
if(int.TryParse(Console.ReadLine(), out value))
Console.WriteLine(errorMessage);
static int findLawnPrice(int width, int length)
int area = width * length;