Is there a better way of doing this more efficiently and better way? It runs and calculates the area but I think there is a better way.
Code Below:
[source lang="csharp"]
namespace LearningCsharp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Enter length");
string length = Console.ReadLine();
int.Parse(length);
int newLength = Convert.ToInt32(length);
Console.WriteLine("Enter width");
string width = Console.ReadLine();
int.Parse(width);
int newWidth = Convert.ToInt32(width);
Console.WriteLine(newLength * newWidth + "cm");
Console.ReadLine();
}
}
}
[/source]