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 टिप्पण्या
कृपया तुमच्या प्रियजनांना लेख शेअर करा आणि तुमचा अभिप्राय जरूर नोंदवा. 🙏 🙏