C Program to Calculate Area of Square

C Program for Beginners : Area of Square

Shape : Square
   Formula : side * side
Definition :
  1. A plane rectangle with four equal sides andfour right angles 
  2. A four-sided regular polygon
  3. 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

Share this

Related Posts

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
cheer