clarksrRac1quezju
clarksrRac1quezju clarksrRac1quezju
  • 11-06-2016
  • Computers and Technology
contestada

write a c++ prgm to find the cube of given number

Respuesta :

metchelle
metchelle metchelle
  • 12-06-2016
This function will find the cube of the inputed number.

void cube(int num){

int calculatedValue;

calculatedValue = num * num * numl;

printf("The cube of %d is %d", num, calculatedValue);

}

Note: This is only a function and the (num) variable is already inputed in the main and passed down to this fucntion
Answer Link

Otras preguntas

Identify the best use of the article a. A. The boys were always carried away by a music. B. Everyone expressed a sadness at the end of the school year. C. Latic
any guess on how many jews were killed whenever hitler was the president and can you compare that amount to todays killings during war and get the difference be
algebra 1 help! •giving brainliest!
In which sentence is who used correctly? who were you discussing? about who were you discussing? who did you discuss with him? who is the person that you were d
The Supreme Court declares an executive order unconstitutional. This is an example of ____. A. majority rule B. rule of law C. representative democracy D. judic
Roberto’s friends are parting ways for the night. What do they say to each other?
−3=34r+2 What is the solution to the equation? Last question!!!!
What is the study of earth's plant, animals, and climates? geology geography physics
what is the range of the function 0.5x^2
How can x2 = 2x + 4 be set up as a system of equations?