C Program to calculate area of cube
/*********************************************************************
C Program to calculate area of cube
area=6*side*side
********************************************************************/
#include<stdio.h>
#include<conio.h>
void
main()
{
float side,area;
clrscr();
printf("Enter side to calculate area of cube\n");
scanf("%f",&side);
area=6*side*side;
printf("The area of cube is:\t%f\n",area);
printf("End of program");
}
Enter side to calculate area of cube
10
The area of cube is: 600.000000
End of program
0 टिप्पण्या
कृपया तुमच्या प्रियजनांना लेख शेअर करा आणि तुमचा अभिप्राय जरूर नोंदवा. 🙏 🙏