C Program to find perimeter of square
Program
#include<stdio.h>
void main()
{
float side, perimeter;
printf("Enter the side of the square:\n");
scanf("%f", &side);
perimeter = 4 * side;
printf("Perimeter of square is %f\n", perimeter);
}
Output
Enter the side of the square:
8
Perimeter of square is 32.000000