Ниже продемонстрирован пример того как можно реализовать код программы по нахождения периметра и площади квадрата.
static void Main(string[] args)
{
int squareheight,area,perimeter;
Console.Write("What is the height of your square? :");
squareheight = Convert.ToInt32(Console.ReadLine());
area = squareheight * squareheight;
perimeter = 4 * squareheight;
