C program to calculate area and perimeter of Square.

#include<stdio.h>
#include<conio.h>
void main()
{
	clrscr();
	int side, peri, area;
	printf("Enter length of a side of square :");
	scanf("%d",&side);
	area=side*side;
	peri=4*side;
	printf("Area = %d\tPerimeter=%d",area,peri);
	getch();
}
C program to calculate area and perimeter of Square. C program to calculate area and perimeter of Square. Reviewed by on December 22, 2019 Rating: 5

No comments:

Powered by Blogger.