Write C program to Calculate area of square ?
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