static void Main(string[] args) { Console.WriteLine("Enter the length"); Rectangle rectangle = new Rectangle(); long a, b; a = (long)Convert.ToDouble(Console.ReadLine()); Console.WriteLine("Enter the width"); b = (long)Convert.ToDouble(Console.ReadLine()); rectangle.calculateArea( a, b); Console.ReadKey(); }