<=Back
The following program segment was created by a student. Use it to answer the question that follows.
main()
{
int n;
printf("Enter a number :");
scanf("%d",&n);
printf("the resultant of %d is %d\n", n,cube(n));
}
cube (int k)
{
return(k*k*k);
}
Interpret the program segment.
 Viewed: 429 times
Share in: