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

you have a standard deck of 52 cards. you pick one card and then, with out putting the first card back, you pick a second card. what is the probability that bot
you have a standard deck of 52 cards. you pick one card and then, with out putting the first card back, you pick a second card. what is the probability that bot
What are the functions of receptors in our body? Think of a situation where receptors do not work properly. What problems are likely to arise?
you have a standard deck of 52 cards. you pick one card and then, with out putting the first card back, you pick a second card. what is the probability that bot
Why is sodium sulphate hemihydrate called as "Plaster of Paris"?
What were the major causes of WWII? Please include at least 4 answers.
How do you?...Multiply out and simplify 10(2x-1)-20x?
Why is sodium sulphate hemihydrate called as "Plaster of Paris"?
How do you?...Multiply out and simplify 10(2x-1)-20x?
What were the major causes of WWII? Please include at least 4 answers.