#include <stdio.h>
int cube();
int main() 
{
    int result;
    result=cube();
    printf("the cube of entered numbers is %d\n",result);
    return 0;
}
int cube()
{
    int num;
    printf("enter any numbers\n");
    scanf("%d",&num);
    return(num*num*num);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: