Program :

#include int main(){
printf("\nEnter the Length of Side of the Square: ");

scanf(“%d”, &side);

area = side * side;

printf(“\nArea of Square is : %d”, area);

return (0);

}

OUTPUT :

Enter the Length of Side of the Square: 5
Area of Square is : 25
Advertisements