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