The above code is a simple program that prints the cube of a number entered by the user.
Shortcut: cube1
#include <stdio.h>
int main()
{
int num;
printf("enter any number = ");
scanf("%d", &num);
printf("cube of %d is %d\n", num, num * num * num);
return 0;
}