How to find area of a square in C Programming ?

 C PROGRAM TO FIND AREA OF A SQUARE

                        
                            Best C programming app is Dev c++

The formula to findout area of a square is

                   Area=[(side)*(side)]

To find area of a square the program must be as given below:-

_____________________________

#include<stdio.h>
int main()
{
int side,area;
printf("Enter the side of Square:");
scanf("%d",&side);
area=side*side;
    printf("The Area of the Square=%d",area);
return 0;
} 

_____________________________

_____________________________

OUTPUT:- Enter the side of Square:5

                    The Area of the Square=25

_________________________


Thank you all -----

Follow my blog for more programming knowledge...

------------------x----------------------x-------------------------x------------------

Comments

Popular Posts