C# program to find Area of Square
Program
using System;
namespace AreaOfSquare
{
class Program
{
static void Main(string[] args)
{
float side, area;
Console.Write("Enter the side of the square:\t");
side = float.Parse(Console.ReadLine());
area = side * side;
Console.WriteLine("Area of Square is:\t" + area);
}
}
}
Output
Enter the side of the square: 20
Area of Square is: 400