Question #342887

(i) Write a function that returns the cube of the integer passed to it. For example cube(2) will

return 8 and

cube(3) will return 27.


Expert's answer

as simple as it is

int cube(int x){
return x*x*x
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS