C Program to Find Area of a Square

#include<stdio.h>
#include<conio.h>
void main()
{
    float side,area;
    clrscr();
 
    printf("\n Enter the Length of Side : ");
    scanf("%f",&side);
 
    area = side * side ;
 
    printf("\n Area of Square : %f",area);
    getch();
}

 OUTPUT:

Enter the Length of Side : 4

Area of Square : 16.000000

Leave a Reply

Your email address will not be published.