CODE:
using System;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
namespaceAreaofRectangle
{
classProgram
{
staticvoid Main(string[]
args)
{
int l, w;
double A;
Console.WriteLine("Please
Enter Length");
l
= Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Please
Enter Width");
w
= Convert.ToInt32(Console.ReadLine());
A
= l * w;
Console.WriteLine(" with
Length {0} and width {1} the area of Rectangle is {2}", l, w, A);
}
}
}
No comments:
Post a Comment