public static void Main()
Console.WriteLine("Please Enter the Length");
string strLength = Console.ReadLine();
Console.WriteLine("Please Enter the Width");
string strWidth = Console.ReadLine();
int iLength = Convert.ToInt32(strLength);
int iWidth = int.Parse(strWidth);
int iArea = iLength * iWidth;
Console.WriteLine("The rectangle is equal to " + iArea);
Console.WriteLine("Please enter the number of pieces");
string strPieces = Console.ReadLine();
int iPieces = Convert.ToInt32(strPieces);
int iUnitArea = iArea / iPieces;
Console.WriteLine("The unit area for a piece is " + iUnitArea);