answersLogoWhite

0

you make a function yourself

For example :

int cube (int input);

int main (void)

{

int x = 2;

printf(x is %d\n",x);

x = cube (x);

printf("x is %d\n",x);

return 0;

}

int cube (int input)

{

int output = input * input *input ;

return output;

}

the output will be :

x is 2

x is 8

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is the GCF of c square and c cube?

The GCF is c squared.


Write a c program to accept a numbers and generate square root cube and exponential values?

write a c program to accept a number and generate a square root cube and exponential values


How do you calculate using c plus plus language?

C++ is not an interpreted language and therefore does not support real-time calculations. That is, you cannot enter an immediate calculation in C++ and expect an immediate result -- you must encode the calculation, then compile and link the code, and finally run the program to get the result. During debugging, however, your IDE may allow you to use watches as a type of calculator. For instance, when you hit a breakpoint, you can add a watch to perform the calculation, and make use of any variables that are in scope within that calculation, and obtain an immediate result from that calculation.


Solve and explain your steps on how you solve this problem. A cube has six sides, six edges and six faces. Each face represents a square. The area of one of the surfaces is equal to c² - 25 ( A= c² - 25). What is the measure of the side of a cube?

Solve and explain your steps on how you solve this problem. A cube has six sides, six edges and six faces. Each face represents a square. The area of one of the surfaces is equal to c² - 25 ( A= c² - 25). What is the measure of the side of a cube?


When was C-Cube created?

C-Cube was created in 1988.


How do you translate C varies jointly as d and the cube of e and inversely as the square root of m?

I'm pretty sure the answer is: C= de3k/ √m (C equals d times e cubed times k, divided by the square root of m).


If b varies directly as the cube of c and inversely as the square of d?

Then b = kc3/d2 where k is some positive constant.


What is the cube root of c if c equals 64?

The cube root is 4.


How do you write Square and cubes c program?

double square (double x) { return x*x; } double cube (double x) { return x*x*x; }


Translate C varies jointly a d and the cube of e and inversely as the square root of m?

C = k*a*d*e^3/sqrt(m) where k is a constant.


Do ice cubes radiate heat?

Yes, Ice Cubes radiate heat. Consider that an ice cube can be modeled as a grey body (similar to a blackbody, but with a different emissivity) with a temperature = 0 °C. The apply Planck's equation to calculation the radiant exitance of the ice cube. This will give you a measure of the amount of heat given off by an ice cube.


The volume (v) of a sphere varies directly as the cube of its diameter (d). Write this statement in algebraic language using an equation with the variables c v and d.?

v = c*d^3