Hello aspirant,
Here is code for calculating area of square in c language.
Please have a look.
#include<stdio.h>
int main() {
int side, area;
printf("\nEnter the Length of Side : ");
scanf("%d", &side);
area = side * side;
printf("\nArea of Square : %d", area);
return (0);
}
Please let me know if you find any error in execution.
Hope this helps you
All the best for your future
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile