Ask Question
18 February, 08:07

Write a c + + prgm to find the cube of given number

+3
Answers (1)
  1. 18 February, 08:21
    0
    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
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write a c + + prgm to find the cube of given number ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers