C Program for Beginners : Area of Square
Shape : Square Formula : side * side | Definition :- A plane rectangle with four equal sides and four right angles
- A four-sided regular polygon
- You can compute the area of a square if you know the length of its sides
|
Program :
#include<stdio.h>
#include<conio.h>
void main()
{
int side,area;
clrscr(); // Clear Screen
printf("\nEnter the Length of Side : ");
scanf("%d",&side);
area = side * side ;
printf("\nArea of Square : %d",area);
getch();
}
Output :
Enter the Length of Side : 5
Area of Square : 25
Incoming search terms:

About the author: Pritesh View all posts by Pritesh
My name is Pritesh Taral. I am working in well known MNC. as Java Developer. I am part time blogger loves writing articles on C/C++. I am active on facebook using community fan page .One can Visit me @ Facebook
Facebook Fan Page