#include<stdio.h>
#include<math.h>
void main()
{
float length,area;
printf("The length of cube");
if(scanf("%f",&length)==1)
{
area=pow(length,3);
printf("The volume of cube is %f",area);
}
else
{
printf("error,enter correct value");
}
}
=========================================OUTPUT==========================
The length of cube :3.2
The volume of cube is :32.768002
The length of cube :2.345
The volume of cube is :12.895214