in this program function is used and function name is cubeByValue. and it is doing the cube of the given number in the program.

#include <stdio.h>

int cubeByValue( int n );

int main()
{
int number = 5;
printf( "The original value of number is %d", number );
number = cubeByValue( number );
printf( "\nThe new value of number is %d\n", number );
return 0;
}

int cubeByValue( int n )
{
return n * n * n;
}