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's area is equal to " + iArea);
Console.WriteLine ("Number of pieces = ");
string strPieces = Console.ReadLine();
int iPieces = Convert.ToInt32(strPieces);
int iPieceArea = iArea/iPieces;
Console.WriteLine ("The area of each piece is {0}.", iPieceArea);