include stdio long cube long long input answer int main void printf En

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>
long cube (long x);
long input, answer;
int main(void)
{
printf ("Enter: ");
scanf ("%d", &input);
answer=cube(input);
printf("\n The cube of %d is % d.\n", input, answer);
return 0;
}
long cube (long x)
{
long x_cubed;
x_cubed=x*x*x;
return x_cubed;
}