write a program to find the perimeter and area of the square?
Answers
Answered by
0
Answer:
perimeter = 4×side
area = side ×side
Explanation:
hope it helps u
these are the formulas for perimeter and area of a square
Answered by
1
Answer:
As you know the
perimeter of square = 4 * side
area of square = side * side
Explanation:
In Python :
side = float(input("Enter the side of square"))
peri_of_square = 4 * side
area_of_square = side * side
print("Area of square = ",area_of_square)
print("Perimeter of square = ",peri_of_square)
In C
#include<stdio.h>
#include<conio.h>
int main()
{
float len, area;
printf("Enter length of Square: ");
scanf("%f", &len);
area = len*len;
printf("\nArea = %0.2f", area);
getch();
return 0;
}
Similar questions