Computer Science, asked by preethibernardv, 7 months ago

Define two inline functions namely square and cube to compute the square and cubic
value of the given number. Write a main program to test it

Answers

Answered by thakuranmol313
0

Answer:

/**

* C program to find cube of any number using function

*/

#include <stdio.h>

/* Function declaration */

double cube(double num);

int main()

{

int num;

double c;

/* Input number to find cube from user */

printf("Enter any number: ");

scanf("%d", &num);

c = cube(num);

printf("Cube of %d is %.2f", num, c);

return 0;

}

/**

* Function to find cube of any number

*/

double cube(double num)

{

return (num * num * num);

}

Explanation:

this is a programme to find cube using function.

Answered by Expertgenious60
2

Answer:

hhsbshw ja qja aja akana N an an ana

Similar questions