C Program to Calculate Area of Square
Posted by Samath
Last Updated: January 02, 2017

This C program calculates Area of a Square based on the side of Square entered by the user.

A square is a regular quadrilateral, which means that it has four equal sides and four equal angles (90-degree angles, or right angles).

Code:

#include<stdio.h>
 
int main() 
{
   int side;
 
   printf("\nPlease Enter the Length of Side : ");
   scanf("%d", &side);
 

   printf("\nArea of Square : %d", side * side);
 
   return (0);
}