C Program to Calculate Area of Square

 


C Program to Calculate Area of Square



/*********************************************************************
C Program to calculate area of square
area=side*side
********************************************************************/
#include<stdio.h>
#include<conio.h>
void main()
{
float side,area;

clrscr();
printf("Enter side to calculate area of square\n");
scanf("%f",&side);
area=side*side;
printf("The area of square is:\t%f\n",area);
printf("End of program");
}


Enter side to calculate area of square

12

The area of square is: 144.000000

End of program

टिप्पणी पोस्ट करा

0 टिप्पण्या