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

Why are college students most targeted group for sexual assault?
Can someone paraphrase lines 1-16 in Billy Collins poem "The Trouble with Poetry". Thanks
Uppose jina has 9.23 pounds of seed. if it takes 7.1 pounds of seed to plant one acre of grass, how many acres of grass can be planted?
Hey hi ask questions plz easy
Need Help with Writing the Constitution! 20 Points! A weakness of the Articles of Confederation was it failure to what? A) establish a national legislature. B)
How do you write the standard number 3,327,000,000 in scientific notation?
What does dr. carroll mean when he says, "while mutation is random, natural selection is not"?
Which person most directly affected voting rights for women?
HELPPP!!! If y=2x+7 were changed to y=5x+7 how would the graph of the new function compare with the original?
What type of mathematical relationship exists between human population and time?