// Compiler : Dev-C++ 4.9.9.2
#include<stdio.h>
int main()
{
float a;
float surface_area,volume;
printf("Edge : ");
scanf("%f",&a);
surface_area = 6 * (a * a);
volume = a * a * a;
printf("\n\n\nSurface Area Of Cube Is: %.3f",surface_area);
printf("\n\n\nVolume Of Cube Is : %.3f",volume);
getch();
return 0;
}
Post a Comment