internal class Program { private static void Main(string[] args) { //Variables //Carrot Variables int CarrotWidth = 8; int CarrotLength = 8; int CarrotNumber = 0; //Vegetable Bed variables int VegetableBedLength = 0; int VegetableBedWidth = 0; Console.WriteLine("What is the length of your Vegetable Bed? (In CM)");//Print to user, asking for variable input VegetableBedLength = Convert.ToInt32(Console.ReadLine());//User inputs the correct value (Length) //presence check and check to ensure a large number isnt inputted do { if (VegetableBedLength <= 0) ; { Console.WriteLine("Error! Please re enter the length of your vegetable bed"); } if (VegetableBedLength > 20) ; { Console.WriteLine("Error! Number is too big! Please re enter the length of your vegetable bed"); } Console.WriteLine("What is the width of your Vegetable Bed (In CM)?");//Print to user, asking for variable input VegetableBedWidth = Convert.ToInt32(Console.ReadLine());//User inputs the correct value (Width) //presence check and check to ensure a large number isnt inputted do { if (VegetableBedWidth <= 0) ; { Console.WriteLine("Error! Please re enter the width of your vegetable bed"); } if (VegetableBedWidth > 20) ; { Console.WriteLine("Error! Number is too big! Please re enter the width of your vegetable bed"); } } //While loop to calucalte how many carrots can be grown in the inputted vegetable patch do { if (CarrotLength < VegetableBedLength || CarrotWidth < VegetableBedWidth) ; { VegetableBedLength = VegetableBedLength - CarrotLength; VegetableBedWidth = VegetableBedWidth - CarrotWidth; CarrotNumber += 1; } } while (CarrotLength < VegetableBedLength || CarrotWidth < VegetableBedWidth); Console.WriteLine("You can put " + CarrotNumber + " in your size vegetable bed, happy gardening!");//outputs back to the user their calculation Console.WriteLine("Press enter to close program :)"); //pressing enter to close the program is standard for C# } }