Write a c program to find the volume and surface area of a cube
C program for area of a cube
Formula of surface area of cube:
Surface_area = 6 * a2
Formula of volume of cube:
Volume = a3
printf("Enter size of any side of a cube : ");
surface_area = 6 * (a * a);
volume = a * a * a;
printf("Surface area of cube is: %.3f",surface_area);
printf("\nVolume of cube is : %.3f",volume);
Enter size of any side of a cube: 3
Surface area of cube is: 54.000
Volume of cube is: 27.000
7. Write a c program to find the area of rhombus.
8. Write a c program to find the area of parallelogram.