Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to Find the Area of a Square Using C

This Program will calculate the area of a Square using c programming language. A Square has four equal rectangles and four right angles. You can calculate the area of a Square if you know the length of its rectangles.

C Program to Calculate Area of Square

Copy the below c program and execute ti with the help of C compiler.

#include
 
int main() {

   int side, area;
 
   printf("\nEnter the length of side Square: ");

   scanf("%d", &side);
 
   area = side * side;

   printf("\nArea of Square : %d", area);
 
   return (0);
}

Enter the length of side Square: 15
The area of square is: 225

The post How to Find the Area of a Square Using C appeared first on FreeWebMentor.



This post first appeared on Programming Blog Focused On Web Technologies, please read the originial post: here

Share the post

How to Find the Area of a Square Using C

×

Subscribe to Programming Blog Focused On Web Technologies

Get updates delivered right to your inbox!

Thank you for your subscription

×