C program to find an area of square.

 

01  #include<stdio.h>
02
03 int main()
04 {
05 int side, area;
06
07 printf("nEnter the Length of Side : ");
08 scanf("%d", &side);
09
10 area = side * side;
11
12 printf("nArea of Square : %d", area);
13
14 return 0;
15 }
 
 
OUTPUT :

Enter the Length of Side : 4
Area of Square : 16

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.