C# Program: To Find Area Of A Rectangle When Lenghth And Breath Entered By User

Sunday, 12 February 2012
using System;
class Traingle
{
    public static void Main()
    {
        float l,b,a;
        Console.WriteLine("Enter Length Of A Rectangle:");
        l=float.Parse(Console.ReadLine());
        Console.WriteLine("Enter Breath Of A Rectangle:");
        b=float.Parse(Console.ReadLine());
        a=l*b;
        Console.WriteLine("Area Of Rectangle is {0}",a);
    }
}
Output:-