You are currently viewing Program to calculate the area of a Square

Program to calculate the area of a Square

  • Post author:
  • Post published:August 26, 2023
  • Post category:c language
#include <stdio.h>

int main()
{
   int square_side, area;

   printf("Enter the side of square: ");
   scanf("%d", &square_side);
   //calculation of the area
   area = square_side * square_side;

   printf("Area of the square: %d", area);
   return 0;
}