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 did coins replace other mediums of exchange
A parallelogram has an area of 396 square centimeters and a height of 18 centimeters. What is the length of the base of the parallelogram?
Analysis may deal with concrete or abstract subjects. a. True b. False
Antonio read 1/2 of the pages in a chapter in his book.If he read 9 pages,how many pages are in the chapter??
Jill has 8 yards of cloth she wants to cut it into pieces that are 1/4 yard long How many pieces can she cut from the length of cloth
Of the students in your class, 12% are left-handed. What fraction of the students are left-handed? Are there more right-handed or left-handed students? Explain.
I don't get it plz help
Water _____. dissolves in most substances heats and cools very quickly is always 100% pure is neither an acid nor a base
What is the answer to the equation 3a-b=3 , a+3b=11 using the substitution method ?
Looking at the same nonmetal group on the periodic table, how does the reactivity of an element in period 2 compare to the reactivity of an element in period 4?