top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

C Program to Calculate Area of Square?

+1 vote
C Program to Calculate Area of Square?
posted Dec 2, 2014 by Vinitha

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes
Best answer

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);

Output :

Enter the Length of Side : 5
Area of Square : 25
answer Dec 2, 2014 by Shivaranjini
Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.