Computer Science, asked by bansumar, 24 days ago

write a complete program to find the cube of anumber using function​

Answers

Answered by sumanrakeshg
0

Answer:

This is easy, but we need to write a separate function for this simple statement.

First assign a meaningful name to the function, say cube() .

The function should accept a number whose cube is to be calculated. Hence, function definition is cube(double num) .

Finally, the function should return cube of num passed.

Answered by rajuldave1969
0

Introduction

#include <stdio.h>

// Function declaration.

double cube(double num);

int main()

{

int num;

double c;

//Inputting number from user.

Similar questions