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

Slogans About Importance of cleanliness???
If r = 9, b = 5, and g = −6, what does (r + b − g)(b + g) equal? F. −20 G. 0−8 H. 0 8 J. 19 K. 20
Find the area in cm2 of a rhombus whose side length is 29 cm and whose diagonals differ in length by 2 cm
Reggie has enough flour to last for 40 days. If he increases his use of flour by 25%, however, how many days' worth of flour will he have? A: 30 days B: 28
I need help to graphs these problem please
What is the greatest common factor of 42, 126, and 210 ? F. 2 G. 6 H. 14 J. 21 K. 42
If 9(x − 9) = −11, then x = ? A. -92/9 B. -20/9 C. -11/9 D. -2/9 E. 70/9
How many 4-digit numbers are there whose digit product is 60?
the height above sea level of land or an object is the what
Ms. Hernandez began her math class by saying: I'm thinking of 5 numbers such that their mean is equal to their median. If 4 of the numbers are 14, 8, 16, and 14