Write a code to Find the volume of cube using c language.

Write a code to Find the volume of cube using "c language". 

formula for volume of cube is:

V
=
a

using this formula we should implement our c program.

SOURCE CODE:

#include <stdio.h>

int main()
{
    printf("Here find the value of any cube in meter\n");
    int length;
    printf("enter the length of any edge=");
    scanf("%d",&length);
    printf("volume of cube=%d",length*length*length);
    printf("m");

    return 0;
}
OUTPUT:
Here find the value of any cube in meter
enter the length of any edge=5
volume of cube = 125 m

0 Comments