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 was Cyanobacteria important to evolution and great ecological changes?
Drag and drop the word in the box’s
Which one is it? Please? ​
What is the “inevitable hour” that the rich and ambitious share with their forefathers?
Is there a difference between these two questions? 1. What is 100 more than 10? 2. How much is 100 more than 10?​
which of the following is required for photosynthesis to take place? a. sugar b. oxygen c. ATP d. water
Mrs. Scott brings her car to a service station for repair. Her bill shows a $215 charge for parts and a charge for 3 1/2 hours of labor. The total bill is $495.
How many milligrams are in 0.2 decigrams? (a) 20 milligrams (b) 2000 milligrams (c) 0.002 milligram (d) 0.00002 milligram
Read the poem and answer the question. [1]I wandered lonely as a cloud That floats on high o'er vales and hills, When all at once I saw a crowd, A host, o
Hellllppppplpp pleaseeee