/* התוכנית מחשבת את שטחו ואת היקפו של מלבן */ using System; public class Rectangle { public static void Main() { int length, width, area, perimeter; Console.Write("Enter length: "); length = int.Parse(Console.ReadLine()); Console.Write("Enter width:"); width = int.Parse(Console.ReadLine()); area = length * width; perimeter = (width + length) * 2; Console.WriteLine("The area is: {0}", area); Console.WriteLine("The perimeter is: {0}", perimeter); } // Main } // class Rectangle